PoDoFo 0.9.6
|
#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) |
![]() | |
PdfFont (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent) | |
PdfFont (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject) | |
void | SetFontSize (float fSize) |
float | GetFontSize () const |
void | SetFontScale (float fScale) |
float | GetFontScale () const |
void | SetFontCharSpace (float fCharSpace) |
float | GetFontCharSpace () const |
void | SetWordSpace (float fWordSpace) |
float | GetWordSpace () const |
void | SetUnderlined (bool bUnder) |
bool | IsUnderlined () const |
bool | IsBold () const |
bool | IsItalic () const |
void | SetStrikeOut (bool bStrikeOut) |
bool | IsStrikeOut () const |
const PdfName & | GetIdentifier () const |
const PdfEncoding * | GetEncoding () const |
const PdfFontMetrics * | GetFontMetrics () const |
PdfFontMetrics * | GetFontMetrics2 () |
virtual void | WriteStringToStream (const PdfString &rsString, PdfStream *pStream) |
virtual void | EmbedFont () |
virtual void | AddUsedSubsettingGlyphs (const PdfString &sText, long lStringLen) |
virtual void | AddUsedGlyphname (const char *pszGlyphName) |
virtual void | EmbedSubsetFont () |
bool | IsSubsetting () const |
![]() | |
PdfObject * | GetObject () |
const PdfObject * | GetObject () const |
Protected Member Functions | |
void | Init (bool bEmbed, bool bSubset) |
void | EmbedFont (PdfObject *pDescriptor) |
virtual void | SetBold (bool bBold) |
virtual void | SetItalic (bool bItalic) |
![]() | |
const PdfName & | GetBaseFont () const |
virtual void | SetBold (bool bBold) |
virtual void | SetItalic (bool bItalic) |
![]() | |
PdfElement (const char *pszType, PdfVecObjects *pParent) | |
PdfElement (const char *pszType, PdfDocument *pParent) | |
PdfElement (const char *pszType, PdfObject *pObject) | |
PdfElement (EPdfDataType eExpectedDataType, PdfObject *pObject) | |
const char * | TypeNameForIndex (int i, const char **ppTypes, long lLen) const |
int | TypeNameToIndex (const char *pszType, const char **ppTypes, long lLen, int nUnknownValue) const |
PdfObject * | CreateObject (const char *pszType=NULL) |
PdfObject * | GetNonConstObject () const |
A PdfFont that represents a CID font.
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 |
|
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 |
Only call if IsSubsetting() returns true. Might throw an exception otherwise.
Reimplemented from PoDoFo::PdfFont.
|
virtual |
Embeds the font into PDF page
Reimplemented from PoDoFo::PdfFont.
|
protected |
Embed the font file directly into the PDF file.
pDescriptor | font descriptor object |
|
virtual |
Embeds pending subset-font into PDF page Only call if IsSubsetting() returns true. Might throw an exception otherwise.
Reimplemented from PoDoFo::PdfFont.
|
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 |
|
protectedvirtual |
Used to specify if this represents a bold font
bBold | if true this is a bold font. |
This can be called by PdfFontFactory to tell this font object that it belongs to a bold font.
Reimplemented from PoDoFo::PdfFont.
|
protectedvirtual |
Used to specify if this represents an italic font
bItalic | if true this is an italic font. |
This can be called by PdfFontFactory to tell this font object that it belongs to an italic font.
Reimplemented from PoDoFo::PdfFont.