Description
I made two PDFont classes for creating PDF documents in CJK and non-ISO-8859-1 languages.
One is PDType0CJKFont. This is for using CJK fonts included in the Asian font package of Adobe Reader. This font doesn't require the target font at the time of creating PDF documentary. This font uses UTF-16 as a text code and supports surrogate pair characters.
The other is PDType0UnicodeFont. This is for using TrueType Type0 Font which can deal with any Unicode characters like a ArialUnicodeMS. Only the characters which are used actually in the document are embedde. Realizing this, you have to call the PDType0Unicode.reloadFont() method just before closing PDPageContentStream. I think this specification is ugly, but I could not thought of a suitable way to remove this spec. This font uses the original glyph code of the embedded font as a text code and supports surrogate pair characters too.
Example programs using these two fonts are also attached.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-4882 Two conditions are always false in TrueTypeEmbedder.isEmbeddingPermitted
- Closed
-
PDFBOX-3985 IOException thrown from org.apache.fontbox.ttf.CMAPEncodingEntry.processSubtype14
- Closed
- relates to
-
PDFBOX-2565 Subset embedded TTF fonts
- Closed