Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить CMap #255

Open
sergey-s-betke opened this issue Jul 16, 2018 · 0 comments
Open

Добавить CMap #255

sergey-s-betke opened this issue Jul 16, 2018 · 0 comments

Comments

@sergey-s-betke
Copy link
Contributor

Using Unicode True Type fonts
Ghostscript can handle True Type fonts with the full Unicode character set. For doing that, a third-party software should generate a Postscript or PDF document with a text, which is encoded with the UTF-16 encoding. Ghostscript may be used for converting such Postscript documents to PDF and for re-distilling such PDF documents to PDF subsets.
To render an UTF-16 encoded text, one must do the following :
Provide a True Type font with Unicode Encoding. It must have a cmap table with platformID equals to 3 (Windows), and SpecificID eqials to 1 (Unicode).
Describe the font in lib/cidfmap with special values for the CSI key : [(Artifex) (Unicode) 0].
In the PS or PDF document combine the font with one of CMap Identity-UTF16-H (for the horizontal writing mode) or Identity-UTF16-V (for the vertical writing mode). Those CMaps are distributed with Ghostscript in Resource/CMap.
Please note that /Registry (Adobe) /Ordering (Identity) won't properly work for Unicode documents, especially for the searchability feature (see CID font substitution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant