One more map to space

pull/378/head
Rod S 2022-01-05 21:14:23 -08:00
parent 48aa43748d
commit 9d0db6366a
2 changed files with 7 additions and 1 deletions

View File

@ -78,7 +78,13 @@ def _map_flag_tag_chars_to_space(colr_font):
gn_space = _lookup_in_cmap(colr_font, ord(" "))
# Add all tag characters used in flags
tag_cps = set(range(0xE0030, 0xE0039 + 1)) | set(range(0xE0061, 0xE007A + 1))
tag_cps = (
set(range(0xE0030, 0xE0039 + 1))
| set(range(0xE0061, 0xE007A + 1))
)
# Cancel tag maps to space in bitmap font
tag_cps |= {0xE007F}
# CBDT maps these things to space based on hb-shape testing
# Android fontchain_lint is unhappy if no such mapping exists

Binary file not shown.