Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86fe803

Browse files
committed
Shorten the type1-to-unicode name table.
This table is actually only used as "uni2type1" to convert unicode characters to "Adobe Type 1" glyph names. In fact, "unknown" characters all get converted to "uni1234" where 1234 is `hex(ord(c))`; see e.g. https://blogs.adobe.com/CCJKType/2013/06/font-development-via-unicode.html Given that type12uni doesn't include *all* code points anyways, we may as well generate the "uni1234"-type names as needed instead. In both places where this is used, if we don't find "uni1234" in the table we already fallback to "question" (just below the patch).
1 parent 9c4e686 commit 86fe803

File tree

3 files changed

+2
-1125
lines changed

3 files changed

+2
-1125
lines changed

0 commit comments

Comments
 (0)