Skip to content

Commit

Permalink
font-patcher: Prevent autohinting on added symbols
Browse files Browse the repository at this point in the history
[why]
The files sizes of otf files are (especially with the addition of the
current Material Design Icons) big enough already. The autohints are not
really useful for symbols, so we can drop them and save some space.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Jan 6, 2023
1 parent fb5781b commit 44def15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,7 @@ class font_patcher:
self.sourceFont.selection.select(currentSourceFontGlyph)
self.sourceFont.paste()
self.sourceFont[currentSourceFontGlyph].glyphname = sym_glyph.glyphname
self.sourceFont[currentSourceFontGlyph].manualHints = True # No autohints for symbols

# Prepare symbol glyph dimensions
sym_dim = get_glyph_dimensions(self.sourceFont[currentSourceFontGlyph])
Expand Down

0 comments on commit 44def15

Please sign in to comment.