Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

PdfFont * PoDoFo::PdfDocument::CreateFont ( FT_Face  face,
const PdfEncoding *const   pEncoding = PdfEncodingFactory::GlobalWinAnsiEncodingInstance(),
bool  bEmbedd = true 
) [inherited]

Creates a PdfFont object

facea valid freetype font handle (will be free'd by PoDoFo)
pEncodingthe encoding of the font. The font will not take ownership of this object.
bEmbeddspecifies whether this font should be embedded in the PDF file. Embedding fonts is usually a good idea.
PdfFont* a pointer to a new PdfFont object. The returned object is owned by the PdfDocument.

Definition at line 212 of file PdfDocument.cpp.

References PoDoFo::PdfFontCache::GetFont().

    return m_fontCache.GetFont( face, bEmbedd, pEncoding );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index