PoDoFo 0.9.6
|
#include <PdfFontType3.h>
Public Member Functions | |
PdfFontType3 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent, bool bEmbed) | |
PdfFontType3 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject) | |
![]() | |
PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent) | |
PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject) | |
virtual void | EmbedFont () |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
void | Init (bool bEmbed, const PdfName &rsSubType) |
virtual void | EmbedFontFile (PdfObject *pDescriptor)=0 |
![]() | |
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 implementation that can be used to embedd type3 fonts into a PDF file or to draw with type3 fonts.
Type3 fonts are always embedded.
PoDoFo::PdfFontType3::PdfFontType3 | ( | PdfFontMetrics * | pMetrics, |
const PdfEncoding *const | pEncoding, | ||
PdfVecObjects * | pParent, | ||
bool | bEmbed | ||
) |
Create a new Type3 font.
It will get embedded automatically.
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 | if true the font will get embedded. |
PoDoFo::PdfFontType3::PdfFontType3 | ( | 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 take ownership of this object depending on pEncoding->IsAutoDelete() |
pObject | an existing PdfObject |