diff options
author | Rasmus Andersson <rasmus@notion.se> | 2017-09-30 19:46:18 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2017-09-30 19:46:18 +0300 |
commit | 8918907041a052c54f201ce239a563476c46b80a (patch) | |
tree | 7d2f29c1d53d36fb18f2633ea4c2322a1e46fe0f /misc | |
parent | b3a32c678b73b4a4383f2f7a57a6d9868cd44ed7 (diff) | |
download | inter-8918907041a052c54f201ce239a563476c46b80a.tar.xz |
Fix bug in rmglyph where the last codepoint in a range would not be removed
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/rmglyph.py | 4 |
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" |