We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb8898c + 99a57c8 commit 9e2cd68Copy full SHA for 9e2cd68
Lib/extractor/formats/opentype.py
@@ -544,6 +544,8 @@ def extractOpenTypeGlyphs(source, destination):
544
sourceGlyph.draw(pen)
545
# width
546
destinationGlyph.width = sourceGlyph.width
547
+ # unicodes
548
+ destinationGlyph.unicodes = list(reversedMapping.get(glyphName, []))
549
# height and vertical origin
550
if vmtx is not None and glyphName in vmtx.metrics:
551
destinationGlyph.height = vmtx[glyphName][0]
@@ -560,8 +562,6 @@ def extractOpenTypeGlyphs(source, destination):
560
562
continue
561
563
xMin, yMin, xMax, yMax = bounds_pen.bounds
564
destinationGlyph.verticalOrigin = tsb + yMax
- # unicodes
- destinationGlyph.unicodes = list(reversedMapping.get(glyphName, []))
565
566
567
# -------
0 commit comments