Use Python's unicodedata.name() in fontTools.unicode
This removes our internal copy of Unicode names database! Adds new API fontTools.unicode.setUnicodeData() that can be called with a filename or file object corresponding to a UnicodeData.txt file, which will consequently used for Unicode character name mapping. This is useful for using newer Unicode database than the one that comes with the builtin Python module. This also changes behavior such that control characters, Hangul syllables, Han chars, etc, get no name with custom UnicodeData.txt. We may revisit this though. Filed https://github.com/behdad/fonttools/issues/82 to add option to ttx to pass custom UnicodeData.txt. Fixes https://github.com/behdad/fonttools/issues/81
This commit is contained in:
parent
ce2a30998b
commit
fea81ee2b3
24495
Lib/fontTools/unicode.py
24495
Lib/fontTools/unicode.py
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user