#include <PdfFontSimple.h>
Inheritance diagram for PoDoFo::PdfFontSimple:
Public Member Functions | |
PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent) | |
PdfFontSimple (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject) | |
Protected Member Functions | |
void | Init (bool bEmbed, const PdfName &rsSubType) |
virtual void | EmbedFont (PdfObject *pDescriptor)=0 |
PoDoFo::PdfFontSimple::PdfFontSimple | ( | PdfFontMetrics * | pMetrics, | |
const PdfEncoding *const | pEncoding, | |||
PdfVecObjects * | pParent | |||
) |
Create a new PdfFont object which will introduce itself automatically to every page object it is used on.
The font has a default font size of 12.0pt.
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 encoding will be owned by this font and will be deleted along with it. | |
pParent | parent of the font object |
PoDoFo::PdfFontSimple::PdfFontSimple | ( | 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 encoding will be owned by this font and will be deleted along with it. | |
pObject | an existing PdfObject |
virtual void PoDoFo::PdfFontSimple::EmbedFont | ( | PdfObject * | pDescriptor | ) | [protected, pure virtual] |
Embed the font file directly into the PDF file.
pDescriptor | font descriptor object |
Implemented in PoDoFo::PdfFontType1.
void PoDoFo::PdfFontSimple::Init | ( | bool | bEmbed, | |
const PdfName & | rsSubType | |||
) | [protected] |
Initialize this font object.
bEmbed | if true embed the font data into the PDF file. | |
rsSubType | the subtype of the real font. |