#include <PdfFontCache.h>
Public Types | |
enum | EFontCreationFlags { eFontCreationFlags_None = 0, eFontCreationFlags_AutoSelectBase14 = 1, eFontCreationFlags_Type1Subsetting = 2 } |
Public Member Functions | |
PdfFontCache (PdfVecObjects *pParent) | |
~PdfFontCache () | |
void | EmptyCache () |
PdfFont * | GetFont (PdfObject *pObject) |
PdfFont * | GetFont (const char *pszFontName, bool bBold, bool bItalic, bool bEmbedd, EFontCreationFlags eFontCreationFlags=eFontCreationFlags_AutoSelectBase14, const PdfEncoding *const =PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), const char *pszFileName=NULL) |
PdfFont * | GetFont (FT_Face face, bool bEmbedd, const PdfEncoding *const =PdfEncodingFactory::GlobalWinAnsiEncodingInstance()) |
PdfFont * | GetDuplicateFontType1 (PdfFont *pFont, const char *pszSuffix) |
PdfFont * | GetFontSubset (const char *pszFontName, bool bBold, bool bItalic, const PdfEncoding *const =PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), const char *pszFileName=NULL) |
void | EmbedSubsetFonts () |
FT_Library | GetFontLibrary () const |
Additional to font caching, this class is also responsible for font matching.
PdfFont is an actual font that can be used in a PDF file (i.e. it does also font embedding) and PdfFontMetrics provides only metrics informations.
This class is an internal class of PoDoFo and should not be used in user applications
|
Flags to control font creation. |
|
Create an empty font cache
|
|
Destroy and empty the font cache |
|
Embeds all pending subset-fonts |
|
Empty the internal font cache. This should be done when ever a new document is created or openened. |
|
Get a font with specific id from the cache. If the font does not yet exist, copy from existing type1-font and set id.
|
|
Get a font from the cache. If the font does not yet exist, add it to the cache.
|
|
Get a font from the cache. If the font does not yet exist, add it to the cache.
|
|
Get a font from the cache. If the font does not yet exist, add it to the cache. This font is created from an existing object.
|
|
Returns the font library from font cache
|
|
Get a fontsubset from the cache. If the font does not yet exist, add it to the cache.
|