mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-31 12:27:22 +02:00
Merge pull request #687 from ryanoasis/bugfix/fstype-font-does-not-open
Bugfix/fstype font does not open
This commit is contained in:
commit
7145db4dab
@ -51,7 +51,10 @@ 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)
|
||||
try:
|
||||
self.sourceFont = fontforge.open(self.args.font, ("fstypepermitted",))
|
||||
except Exception:
|
||||
sys.exit(projectName + ": Can not open font, try to open with fontforge interactively to get more information")
|
||||
self.setup_font_names()
|
||||
self.remove_ligatures()
|
||||
make_sure_path_exists(self.args.outputdir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user