1
0
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:
Ryan L McIntyre 2021-11-26 17:57:23 -08:00 committed by GitHub
commit 7145db4dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)