|
pdfmm 0.9.20
|
#include <PdfFontTrueTypeSubset.h>
Static Public Member Functions | |
| static void | BuildFont (std::string &output, PdfInputDevice &input, unsigned short faceIndex, const CIDToGIDMap &cidToGidMap) |
This class is able to build a new TTF font with only certain glyphs from an existing font.
|
static |
Actually generate the subsetted font Create a new PdfFontTrueTypeSubset from an existing TTF font file using an input device.
| output | write the font to this buffer |
| inputDevice | a PdfInputDevice |
| type | the type of the font |
| faceIndex | index of the face inside of the font |
| metrics | font metrics object for this font |
| cidToGidMap | a map from cids to gids. It shall be a map of consecutive indices starting with 1 |
| cidSet | the output /CidSet |