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

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

Creates a PdfFont object

Parameters:
pszFontNamename of the font as it is known to the system
bBoldif true search for a bold font
bItalicif true search for an italic font
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.
optional,:pszFileName path to a valid font file
Returns:
PdfFont* a pointer to a new PdfFont object.

Definition at line 176 of file PdfDocument.cpp.

References PoDoFo::PdfFontCache::GetFont().

{
    return m_fontCache.GetFont( pszFontName, bBold, bItalic, bEmbedd, eFontCreationFlags, pEncoding, pszFileName );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index