-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TrueTypeWrapper to correctly encode multiple codepoints refering …
…to the same glyph When multiple codepoints are mapped to the same glyph, the result is erroneous due to the double usage of identity maps for the charcode to CID mapping and the CID to GID mapping. To fix this, * glyph caching in #glyph must be performed not only on the glyph ID but also on the supplied string; * glyph encoding in #encode must be done using custom charcodes and not the glpyh ID; * the custom mapping of charcodes to CIDs must be encoded using a custom CID CMap for the /Encoding entry (in most cases, sometimes it is still possible to use the identity encoding).
- Loading branch information
Showing
3 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters