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

PdfFont * PoDoFo::PdfDocument::CreateFont ( const char *  pszFontName,
const PdfEncoding *const   pEncoding = PdfEncodingFactory::GlobalWinAnsiEncodingInstance(),
PdfFontCache::EFontCreationFlags  eFontCreationFlags = PdfFontCache::eFontCreationFlags_AutoSelectBase14,
bool  bEmbedd = true 
) [inherited]

Creates a PdfFont object

pszFontNamename of the font as it is known to the system
pEncodingthe encoding of the font. The font will not take ownership of this object.
eFontCreationFlagsspecial flag to specify how fonts should be created
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 168 of file PdfDocument.cpp.

References PoDoFo::PdfFontCache::GetFont().

Referenced by EncryptTest::CreatedEncrypedPdf().

    return m_fontCache.GetFont( pszFontName, false, false, bEmbedd, eFontCreationFlags, pEncoding );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index