#include <PdfFontType1.h>
Inheritance diagram for PoDoFo::PdfFontType1:
Public Member Functions | |
PdfFontType1 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent, bool bEmbed, bool bSubsetting=false) | |
PdfFontType1 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject) | |
PdfFontType1 (PdfFontType1 *pFont, PdfFontMetrics *pMetrics, const char *pszSuffix, PdfVecObjects *pParent) | |
Protected Member Functions | |
virtual void | AddUsedSubsettingGlyphs (const PdfString &sText, long lStringLen) |
virtual void | AddUsedGlyphname (const char *sGlyphName) |
virtual void | EmbedSubsetFont () |
virtual void | EmbedFontFile (PdfObject *pDescriptor) |
PoDoFo::PdfFontType1::PdfFontType1 | ( | PdfFontMetrics * | pMetrics, | |
const PdfEncoding *const | pEncoding, | |||
PdfVecObjects * | pParent, | |||
bool | bEmbed, | |||
bool | bSubsetting = false | |||
) |
Create a new Type1 font object.
pMetrics | pointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the font. | |
pEncoding | the encoding of this font. The font will not take ownership of this object. | |
pParent | parent of the font object | |
bEmbed | if true the font will get embedded. | |
bSubsetting | if true the font will use subsetting. |
PoDoFo::PdfFontType1::PdfFontType1 | ( | PdfFontMetrics * | pMetrics, | |
const PdfEncoding *const | pEncoding, | |||
PdfObject * | pObject | |||
) |
Create a PdfFont based on an existing PdfObject
pMetrics | pointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the font. | |
pEncoding | the encoding of this font. The font will not take ownership of this object. | |
pObject | an existing PdfObject |
PoDoFo::PdfFontType1::PdfFontType1 | ( | PdfFontType1 * | pFont, | |
PdfFontMetrics * | pMetrics, | |||
const char * | pszSuffix, | |||
PdfVecObjects * | pParent | |||
) |
Create a PdfFont based on an existing PdfFont with a new id
pFont | pointer to existing font | |
pMetrics | pointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the font. | |
pszSuffix | Suffix to add to font-id | |
pParent | parent of the font object |
void PoDoFo::PdfFontType1::AddUsedGlyphname | ( | const char * | sGlyphName | ) | [protected, virtual] |
Remember the glyphname in case of subsetting
sGlyphName | Name of the glyph to remember |
Reimplemented from PoDoFo::PdfFont.
void PoDoFo::PdfFontType1::AddUsedSubsettingGlyphs | ( | const PdfString & | sText, | |
long | lStringLen | |||
) | [protected, virtual] |
Remember the glyphs used in the string in case of subsetting
sText | the text string which should be printed (is not allowed to be NULL!) | |
lStringLen | draw only lLen characters of pszText |
Reimplemented from PoDoFo::PdfFont.
void PoDoFo::PdfFontType1::EmbedFontFile | ( | PdfObject * | pDescriptor | ) | [protected, virtual] |
Embed the font file directly into the PDF file.
pDescriptor | font descriptor object |
Implements PoDoFo::PdfFontSimple.
void PoDoFo::PdfFontType1::EmbedSubsetFont | ( | ) | [protected, virtual] |
Embeds pending subset-font into PDF page
Reimplemented from PoDoFo::PdfFont.