Skip to content

Commit

Permalink
Added --scale-upm option to ttf2otf converter
Browse files Browse the repository at this point in the history
  • Loading branch information
ftCLI committed May 5, 2023
1 parent 2961fd7 commit 2a2c638
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ftCLI/Lib/converters/ttf_to_otf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,15 @@ def run(self):
except NotImplementedError:
try:
charstrings = self.get_qu2cu_charstrings(tolerance=self.options.tolerance, all_cubic=False)
except:
except Exception as e:
generic_error_message(f"An error occurred while getting qu2cu charstrings {e}")
return

if self.options.charstring_source == "t2":
try:
charstrings = self.get_t2_charstrings()
except:
except Exception as e:
generic_error_message(f"An error occurred while getting t2 charstrings {e}")
return

cff_font_info = self.get_cff_font_info()
Expand Down

0 comments on commit 2a2c638

Please sign in to comment.