mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
font-patcher: Allow processing of fonts with fsType set
[why] Through fsType certain restrictions can be set on a font. When fontforge is used in interactive mode the user can override the restrictions with a popup dialogue. The font-patcher script dies instead, without any meaningful message. [how] Allow the script to ignore fsType settings when opening. The restrictions will still persist into the generated patched font. [note] This came up with Bicubik by Anton Kudin, that has fsType = 2 (modification restriction) set. Fixes: #686 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
e90d082ffc
commit
f7d6fcb59c
@ -51,7 +51,7 @@ class font_patcher:
|
||||
self.extension = ""
|
||||
self.setup_arguments()
|
||||
self.config = configparser.ConfigParser(empty_lines_in_values=False, allow_no_value=True)
|
||||
self.sourceFont = fontforge.open(self.args.font)
|
||||
self.sourceFont = fontforge.open(self.args.font, ("fstypepermitted",))
|
||||
self.setup_font_names()
|
||||
self.remove_ligatures()
|
||||
make_sure_path_exists(self.args.outputdir)
|
||||
|
Loading…
Reference in New Issue
Block a user