diff options
author | Rasmus Andersson <rasmus@notion.se> | 2019-08-08 04:11:54 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2019-08-08 04:11:54 +0300 |
commit | 43fff858ff78f93c680ab4f3ac92e101838a2c5a (patch) | |
tree | 62c8415f394b470079160e975cd591daa4e7b4e5 /misc | |
parent | 15a20262a61da8ac0b1f6a2bae2373656443dacd (diff) | |
download | inter-43fff858ff78f93c680ab4f3ac92e101838a2c5a.tar.xz |
tooling: fixes bug in fallback-codepoint script
Diffstat (limited to 'misc')
-rw-r--r-- | misc/glyphs-scripts/assign-fallback-codepoints.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/glyphs-scripts/assign-fallback-codepoints.py b/misc/glyphs-scripts/assign-fallback-codepoints.py index ba4c16dbd..d5099a5fd 100644 --- a/misc/glyphs-scripts/assign-fallback-codepoints.py +++ b/misc/glyphs-scripts/assign-fallback-codepoints.py @@ -26,14 +26,14 @@ try: for g in font.glyphs: if g.unicodes is not None: for c in [int(c, 16) for c in g.unicodes]: - if c <= 0xEFFF and c > nextcp: + if c <= 0xEFFF and c >= nextcp: nextcp = c + 1 - + print('nextcp: %X' % nextcp) if DRY_RUN: print('DRY_RUN mode (no actual changes will be made)') print('————————————————') - + # for printing mappings = OrderedDict() longest_gname = 0 |