#include <PdfFontCID.h>
Public Member Functions | |
PdfFontCID (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent, bool bEmbed, bool bSubset) | |
PdfFontCID (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject, bool bEmbed) | |
virtual void | EmbedFont () |
virtual void | EmbedSubsetFont () |
virtual void | AddUsedSubsettingGlyphs (const PdfString &sText, long lStringLen) |
Protected Member Functions | |
void | Init (bool bEmbed, bool bSubset) |
void | EmbedFont (PdfObject *pDescriptor) |
virtual void | SetBold (bool bBold) |
virtual void | SetItalic (bool bItalic) |
PoDoFo::PdfFontCID::PdfFontCID | ( | PdfFontMetrics * | pMetrics, | |
const PdfEncoding *const | pEncoding, | |||
PdfVecObjects * | pParent, | |||
bool | bEmbed, | |||
bool | bSubset | |||
) |
Create a new CID 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. | |
pEncoding | the encoding of this font. The font will take ownership of this object depending on pEncoding->IsAutoDelete() | |
pParent | parent of the font object | |
bEmbed | specifies the embedding of font | |
bSubset | specifies the subsetting of the font; forces bEmbed to false, if set |
PoDoFo::PdfFontCID::PdfFontCID | ( | PdfFontMetrics * | pMetrics, | |
const PdfEncoding *const | pEncoding, | |||
PdfObject * | pObject, | |||
bool | bEmbed | |||
) |
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 take ownership of this object depending on pEncoding->IsAutoDelete() | |
pObject | an existing PdfObject | |
bEmbed | specifies the embedding of font |
void PoDoFo::PdfFontCID::EmbedFont | ( | ) | [virtual] |
Embeds the font into PDF page
Reimplemented from PoDoFo::PdfFont.
void PoDoFo::PdfFontCID::EmbedSubsetFont | ( | ) | [virtual] |
Embeds pending subset-font into PDF page Only call if IsSubsetting() returns true. Might throw an exception otherwise.
Reimplemented from PoDoFo::PdfFont.
void PoDoFo::PdfFontCID::AddUsedSubsettingGlyphs | ( | const PdfString & | sText, | |
long | lStringLen | |||
) | [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::PdfFontCID::Init | ( | bool | bEmbed, | |
bool | bSubset | |||
) | [protected] |
Initialize this font object.
bEmbed | if true embed the font data into the PDF file. | |
bSubset | specifies the subsetting of the font; forces bEmbed to false, if set |
void PoDoFo::PdfFontCID::EmbedFont | ( | PdfObject * | pDescriptor | ) | [protected] |
Embed the font file directly into the PDF file.
pDescriptor | font descriptor object |
void PoDoFo::PdfFontCID::SetBold | ( | bool | bBold | ) | [protected, virtual] |
Used to specify if this represents a bold font
bBold | if true this is a bold font. |
Reimplemented from PoDoFo::PdfFont.
void PoDoFo::PdfFontCID::SetItalic | ( | bool | bItalic | ) | [protected, virtual] |
Used to specify if this represents an italic font
bItalic | if true this is an italic font. |
Reimplemented from PoDoFo::PdfFont.