mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
font-patcher: Access the symbol fonts via unicode
[why] The whole patching process addresses the glyphs via their unicode number / codepoint. We ensure the adressability for the to be patched font, but the symbol fonts can differ. [how] Just set the way we want to address the symbol font glyphs. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
80e818bf55
commit
702e31716c
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@ class font_patcher:
|
|||
sys.exit("{}: Can not open symbol source for '{}'\n{:>{}} (i.e. {})".format(
|
||||
projectName, patch['Name'], '', len(projectName), self.args.glyphdir + patch['Filename']))
|
||||
symfont = fontforge.open(os.path.join(self.args.glyphdir, patch['Filename']))
|
||||
symfont.encoding = 'UnicodeFull'
|
||||
|
||||
# Match the symbol font size to the source font size
|
||||
symfont.em = self.sourceFont.em
|
||||
|
|
Loading…
Reference in a new issue