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
- Create pdftron.PDF.Font object via Font.createTrueTypeFont() passing in a path to a .tff file. Specify to subset embed.
- Create a ElementReader/ElementWriter to step through a temporary page to update the glyphs for subsetting
- 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.