#include <PdfFont.h>
Inheritance diagram for PoDoFo::PdfFont:
Public Member Functions | |
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 | 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 |
Protected Member Functions | |
const PdfName & | GetBaseFont () const |
Use PdfDocument::CreateFont to create a new font object. It will choose a correct subclass using PdfFontFactory.
This is only an abstract base class which is implemented for different font formats.
|
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.
|
|
Create a PdfFont based on an existing PdfObject
|
|
Remember the glyphname in case of subsetting
Reimplemented in PoDoFo::PdfFontType1. |
|
Remember the glyphs used in the string in case of subsetting
Reimplemented in PoDoFo::PdfFontType1. |
|
Embeds the font into PDF page Reimplemented in PoDoFo::PdfFontCID, and PoDoFo::PdfFontSimple. |
|
Embeds pending subset-font into PDF page Only call if IsSubsetting() returns true. Might throw an exception otherwise.
Reimplemented in PoDoFo::PdfFontType1. |
|
Get the base font name of this font
|
|
Returns a reference to the fonts encoding
|
|
Retrieve the current character spacing of this font object
|
|
Returns a handle to the fontmetrics object of this font. This can be used for size calculations of text strings when drawn using this font.
|
|
Returns a handle to the fontmetrics object of this font. This can be used for size calculations of text strings when drawn using this font.
|
|
Retrieve the current horizontal scaling of this font object
|
|
Retrieve the current font size of this font object
|
|
Returns the identifier of this font how it is known in the pages resource dictionary.
|
|
|
|
|
|
|
|
Check if this is a subsetting font.
|
|
|
|
Set the character spacing of the font
|
|
Set the horizontal scaling of the font for compressing (< 100) and expanding (>100)
|
|
Set the font size before drawing with this font.
|
|
Set the strikeout property of the font
|
|
Set the underlined property of the font
|
|
Write a PdfString to a PdfStream in a format so that it can be used with this font. This is used by PdfPainter::DrawText to display a text string. The following PDF operator will be Tj
|