#include <PdfFontTTFSubset.h>
Public Types | |
| eFontFileType_TTF | |
| TrueType Font. | |
| eFontFileType_TTC | |
| TrueType Collection. | |
| eFontFileType_OTF | |
| OpenType Font. | |
| eFontFileType_Unknown | |
| Unknown. | |
| enum | EFontFileType { eFontFileType_TTF, eFontFileType_TTC, eFontFileType_OTF, eFontFileType_Unknown } |
Public Member Functions | |
| PdfFontTTFSubset (const char *pszFontFileName, PdfFontMetrics *pMetrics, unsigned short nFaceIndex=0) | |
| PdfFontTTFSubset (PdfInputDevice *pDevice, PdfFontMetrics *pMetrics, EFontFileType eType, unsigned short nFaceIndex=0) | |
| void | BuildFont (PdfOutputDevice *pOutputDevice) |
| void | AddGlyph (unsigned short nGlyphIndex) |
| void | AddCharacter (pdf_utf16be nCharCode) |
| size_t | GetSize () const |
| PoDoFo::PdfFontTTFSubset::PdfFontTTFSubset | ( | const char * | pszFontFileName, | |
| PdfFontMetrics * | pMetrics, | |||
| unsigned short | nFaceIndex = 0 | |||
| ) |
Create a new PdfFontTTFSubset from an existing TTF font file.
| pszFontFileName | path to a TTF file | |
| pMetrics | font metrics object for this font | |
| nFaceIndex | index of the face inside of the font |
| PoDoFo::PdfFontTTFSubset::PdfFontTTFSubset | ( | PdfInputDevice * | pDevice, | |
| PdfFontMetrics * | pMetrics, | |||
| EFontFileType | eType, | |||
| unsigned short | nFaceIndex = 0 | |||
| ) |
Create a new PdfFontTTFSubset from an existing TTF font file using an input device.
| pDevice | a PdfInputDevice | |
| pMetrics | font metrics object for this font | |
| eType | the type of the font | |
| nFaceIndex | index of the face inside of the font |
| void PoDoFo::PdfFontTTFSubset::AddCharacter | ( | pdf_utf16be | nCharCode | ) | [inline] |
Add an unicode character to the subset
| nCharCode | unicode character code |
| void PoDoFo::PdfFontTTFSubset::AddGlyph | ( | unsigned short | nGlyphIndex | ) |
Add a new glyph index to the subset.
| nGlyphIndex | include this glyph in the final font |
| void PoDoFo::PdfFontTTFSubset::BuildFont | ( | PdfOutputDevice * | pOutputDevice | ) |
Actually generate the subsetted font
| pOutputDevice | write the font to this device |
| size_t PoDoFo::PdfFontTTFSubset::GetSize | ( | ) | const [inline] |
Get the number of glyphs in this font.
1.4.7