Don't recalculate font-wide bounding box
Doing some requires loading all glyphs...
This commit is contained in:
parent
4cf7a80fa1
commit
8e11c6d7ab
@ -947,6 +947,7 @@ options_default = {
|
|||||||
'name-legacy': False,
|
'name-legacy': False,
|
||||||
'name-languages': [0x0409], # English
|
'name-languages': [0x0409], # English
|
||||||
'mandatory-glyphs': True, # First four for TrueType, .notdef for CFF
|
'mandatory-glyphs': True, # First four for TrueType, .notdef for CFF
|
||||||
|
'recalc-bboxes': False, # Slows us down
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -998,6 +999,7 @@ def main ():
|
|||||||
|
|
||||||
font = fontTools.ttx.TTFont (fontfile)
|
font = fontTools.ttx.TTFont (fontfile)
|
||||||
font.disassembleInstructions = False
|
font.disassembleInstructions = False
|
||||||
|
font.recalcBBoxes = options['recalc-bboxes']
|
||||||
lapse ("load font")
|
lapse ("load font")
|
||||||
|
|
||||||
if options["mandatory-glyphs"]:
|
if options["mandatory-glyphs"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user