We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c77de commit 856734fCopy full SHA for 856734f
src/extractpoints.py
@@ -513,11 +513,18 @@ def silent_fontopen(fname):
513
os.close(origstderr)
514
return fontobj
515
516
+features_to_copy = """
517
+ ascent descent em encoding upos uwidth weight
518
+""".split() # TODO: Find out if any other font features need to be copied
519
+
520
def create_dotted_font(fname):
521
input_font = silent_fontopen(fname)
522
global args
523
args.em = input_font.em
524
new_font = fontforge.font()
525
+ for feature in features_to_copy:
526
+ value = getattr(input_font, feature)
527
+ setattr(new_font, feature, value)
528
for glyphname in input_font:
529
if glyphname in ('.notdef', '.null'): continue
530
glyph = input_font[glyphname]
0 commit comments