PoDoFo  0.9.6
Public Member Functions | Protected Member Functions | List of all members
PoDoFo::PdfFontType1Base14 Class Reference

#include <PdfFontType1Base14.h>

Inheritance diagram for PoDoFo::PdfFontType1Base14:
PoDoFo::PdfFontSimple PoDoFo::PdfFont PoDoFo::PdfElement

Public Member Functions

 PdfFontType1Base14 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent)
 
 PdfFontType1Base14 (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject)
 
- Public Member Functions inherited from PoDoFo::PdfFontSimple
 PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent)
 
 PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject)
 
virtual void EmbedFont ()
 
- Public Member Functions inherited from PoDoFo::PdfFont
 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 AddUsedSubsettingGlyphs (const PdfString &sText, long lStringLen)
 
virtual void AddUsedGlyphname (const char *pszGlyphName)
 
virtual void EmbedSubsetFont ()
 
bool IsSubsetting () const
 
- Public Member Functions inherited from PoDoFo::PdfElement
PdfObject * GetObject ()
 
const PdfObject * GetObject () const
 

Protected Member Functions

virtual void EmbedFontFile (PdfObject *pDescriptor)
 
- Protected Member Functions inherited from PoDoFo::PdfFontSimple
void Init (bool bEmbed, const PdfName &rsSubType)
 
- Protected Member Functions inherited from PoDoFo::PdfFont
const PdfName & GetBaseFont () const
 
virtual void SetBold (bool bBold)
 
virtual void SetItalic (bool bItalic)
 
- Protected Member Functions inherited from PoDoFo::PdfElement
 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
 

Detailed Description

A PdfFont implementation that can be used draw with base14 type1 fonts into a PDF file.

Constructor & Destructor Documentation

◆ PdfFontType1Base14() [1/2]

PoDoFo::PdfFontType1Base14::PdfFontType1Base14 ( PdfFontMetrics *  pMetrics,
const PdfEncoding *const  pEncoding,
PdfVecObjects *  pParent 
)

Create a new Type1 font object.

Parameters
pMetricspointer 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.
pEncodingthe encoding of this font. The font will take ownership of this object depending on pEncoding->IsAutoDelete()
pParentparent of the font object

◆ PdfFontType1Base14() [2/2]

PoDoFo::PdfFontType1Base14::PdfFontType1Base14 ( PdfFontMetrics *  pMetrics,
const PdfEncoding *const  pEncoding,
PdfObject *  pObject 
)

Create a new Type1 font object based on an existing PdfObject

Parameters
pMetricspointer 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.
pEncodingthe encoding of this font. The font will take ownership of this object depending on pEncoding->IsAutoDelete()
pObjectan existing PdfObject

Member Function Documentation

◆ EmbedFontFile()

void PoDoFo::PdfFontType1Base14::EmbedFontFile ( PdfObject *  pDescriptor)
protectedvirtual

Embed the font file directly into the PDF file.

Parameters
pDescriptorfont descriptor object

Implements PoDoFo::PdfFontSimple.