Skip to content

Commit f2ff494

Browse files
authored
Merge pull request #66 from rimas-kudelis/patch-1
Better fallback for kerning info extraction
2 parents d3e83b9 + 739b1c2 commit f2ff494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/extractor/formats/opentype.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def extractOpenTypeKerning(source, destination):
578578
groups = {}
579579
if "GPOS" in source:
580580
kerning, groups = _extractOpenTypeKerningFromGPOS(source)
581-
elif "kern" in source:
581+
if kerning == {} and "kern" in source:
582582
kerning = _extractOpenTypeKerningFromKern(source)
583583
groups = {}
584584
for name, group in groups.items():

0 commit comments

Comments
 (0)