1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-25 00:21:40 +03:00

Fix bug in rmglyph where the last codepoint in a range would not be removed

This commit is contained in:
Rasmus Andersson 2017-09-30 09:46:18 -07:00
parent b3a32c678b
commit 8918907041

View File

@ -79,7 +79,7 @@ def getGlyphNamesFont(font, ucmap, glyphs):
# range, e.g. "U+1D0A-1DBC"
cpStart = int(s[2:p], 16)
cpEnd = int(s[p+1:], 16)
for cp in range(cpStart, cpEnd):
for cp in range(cpStart, cpEnd+1):
addGlyphsForCPFont(cp, ucmap, glyphnames)
else:
# single code point e.g. "U+1D0A"
@ -110,7 +110,7 @@ def getGlyphNamesComps(comps, agl, glyphs):
# range, e.g. "U+1D0A-1DBC"
cpStart = int(s[2:p], 16)
cpEnd = int(s[p+1:], 16)
for cp in range(cpStart, cpEnd):
for cp in range(cpStart, cpEnd+1):
addGlyphsForCPComps(cp, comps, agl, glyphnames)
else:
# single code point e.g. "U+1D0A"