You don't actually subset a CID font - since there is no such thing as a
CID font file.
A CID font is really a special way to encode/store font data in a PDF file
when having to deal with Unicode-based fonts. You can create a CID font
from a TTF or OTF font as part of subsetting it - though it's
I want to generate a pdf document, which contains strings in several
languages. Set of the languages (i.e. set of required characters) can be
determined only at generation phase, so I've decided to use a font,
which contains as much as possible characters
If you are planning to support a wide set of potential languages with a single
font, then yes, subset embedding is the correct solution.
IIRC, PoDoFo supports subsetting for TrueType fonts only. If that font is a
TTF, you should be fine.
Leonard
From: cybevnm