PoDoFo 0.7.0
|
#include <PdfFontFactory.h>
Static Public Member Functions | |
static PdfFont * | CreateFontObject (PdfFontMetrics *pMetrics, int nFlags, const PdfEncoding *const pEncoding, PdfVecObjects *pParent) |
static PdfFont * | CreateFont (FT_Library *pLibrary, PdfObject *pObject) |
static EPdfFontType | GetFontType (const char *pszFilename) |
This is a factory class which knows which implementation of PdfFont is required for a certain font type with certain features (like encoding).
PdfFont * PoDoFo::PdfFontFactory::CreateFont | ( | FT_Library * | pLibrary, |
PdfObject * | pObject | ||
) | [static] |
Create a new PdfFont from an existing font in a PDF file.
pLibrary | handle to the FreeType library, so that a PdfFontMetrics can be constructed for this font |
pObject | a PDF font object |
PdfFont * PoDoFo::PdfFontFactory::CreateFontObject | ( | PdfFontMetrics * | pMetrics, |
int | nFlags, | ||
const PdfEncoding *const | pEncoding, | ||
PdfVecObjects * | pParent | ||
) | [static] |
Create a new PdfFont object.
pMetrics | pointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the created font. In case of an error, it is deleted here. |
nFlags | font flags or'ed together, specifying the font style and if it should be embedded |
pEncoding | the encoding of this font. |
pParent | the parent of the created font. |
EPdfFontType PoDoFo::PdfFontFactory::GetFontType | ( | const char * | pszFilename | ) | [static] |
Try to guess the fonttype from a the filename of a font file.
pszFilename | filename of a fontfile |