summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-09-30 19:46:18 +0300
committerRasmus Andersson <rasmus@notion.se>2017-09-30 19:46:18 +0300
commit8918907041a052c54f201ce239a563476c46b80a (patch)
tree7d2f29c1d53d36fb18f2633ea4c2322a1e46fe0f
parentb3a32c678b73b4a4383f2f7a57a6d9868cd44ed7 (diff)
downloadinter-8918907041a052c54f201ce239a563476c46b80a.tar.xz
Fix bug in rmglyph where the last codepoint in a range would not be removed
-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"