Why does adding a CIDFontType2 result in a CIDFontType0?

53 views
Skip to first unread message

Ryan

unread,
Oct 7, 2014, 6:41:03 PM10/7/14
to pdfne...@googlegroups.com
Q:

When I use the Font.CreateTrueTypeFont passing in the path to a ttf file, it gets inserted into the PDF as a CIDFontType0 and not as a CIDFontType2 as I would expect.

My steps are
1. Create pdftron.PDF.Font object via Font.createTrueTypeFont() passing in a path to a .tff file.  Specify to subset embed.
2. Create a ElementReader/ElementWriter to step through a temporary page to update the glyphs for subsetting
3. Place the SDFObj of the newly created Font object into the fonts dictionary.

-----------------------------------------------------------------------------------------------------------------

A:

When you choose to Embed AND Subset a font, it is always generated as a CIDFontType0 when saving. This as designed.
Reply all
Reply to author
Forward
0 new messages