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

PdfFont * PoDoFo::PdfDocument::CreateFontSubset ( const char *  pszFontName,
bool  bBold,
bool  bItalic,
const PdfEncoding * const  pEncoding = PdfEncodingFactory::GlobalWinAnsiEncodingInstance(),
const char *  pszFileName = NULL 
) [inherited]

Creates a font subset which contains only a few characters and is embedded.

THIS WORKS ONLY FOR TTF FONTS!

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.
Returns:
PdfFont* a pointer to a new PdfFont object.

Definition at line 198 of file PdfDocument.cpp.

References PoDoFo::PdfFontCache::GetFontSubset().

{
    return m_fontCache.GetFontSubset( pszFontName, bBold, bItalic, pEncoding, pszFileName );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index