summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc/rmglyph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/rmglyph.py b/misc/rmglyph.py
index 3b5c41238..4b94f8eee 100755
--- a/misc/rmglyph.py
+++ b/misc/rmglyph.py
@@ -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"