Class representing TrueType fonts. (For internal use only). More...
#include <pdffontdatatruetype.h>
Public Member Functions | |
| wxPdfFontDataTrueType () | |
| Default constructor. | |
| virtual | ~wxPdfFontDataTrueType () |
| Default destructor. | |
| virtual double | GetStringWidth (const wxString &s, wxPdfChar2GlyphMap *convMap=NULL, bool withKerning=false) const |
| Get the width of a string. | |
| virtual wxString | ConvertCID2GID (const wxString &s, wxPdfChar2GlyphMap *convMap=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Convert character codes to glyph numbers. | |
| virtual wxString | GetWidthsAsString (bool subset=false, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Get the character width array as string. | |
| virtual bool | LoadFontMetrics (wxXmlNode *root) |
| Load the font metrics XML file. | |
| virtual size_t | WriteFontData (wxOutputStream *fontData, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write font data. | |
| virtual wxMBConv * | GetEncodingConv () const |
| Get the associated encoding converter. | |
| virtual void | CreateDefaultEncodingConv () |
| Create the associated default encoding converter. | |
Protected Attributes | |
| wxMBConv * | m_conv |
| Assocated encoding converter. | |
Class representing TrueType fonts. (For internal use only).
| wxPdfFontDataTrueType::wxPdfFontDataTrueType | ( | ) |
Default constructor.
| virtual wxPdfFontDataTrueType::~wxPdfFontDataTrueType | ( | ) | [virtual] |
Default destructor.
| virtual wxString wxPdfFontDataTrueType::ConvertCID2GID | ( | const wxString & | s, | |
| wxPdfChar2GlyphMap * | convMap = NULL, |
|||
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
|||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL | |||
| ) | [virtual] |
Convert character codes to glyph numbers.
| s | the string to be converted | |
| convMap | the character to glyph mapping | |
| usedGlyphs | the list of used glyphs | |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
| virtual void wxPdfFontDataTrueType::CreateDefaultEncodingConv | ( | ) | [virtual] |
Create the associated default encoding converter.
Reimplemented from wxPdfFontData.
| virtual wxMBConv* wxPdfFontDataTrueType::GetEncodingConv | ( | ) | const [inline, virtual] |
Get the associated encoding converter.
Reimplemented from wxPdfFontData.
| virtual double wxPdfFontDataTrueType::GetStringWidth | ( | const wxString & | s, | |
| wxPdfChar2GlyphMap * | convMap = NULL, |
|||
| bool | withKerning = false | |||
| ) | const [virtual] |
Get the width of a string.
| s | the string for which the width should be calculated | |
| convMap | the character to glyph mapping | |
| withKerning | flag indicating whether kerning should be taken into account |
Reimplemented from wxPdfFontData.
| virtual wxString wxPdfFontDataTrueType::GetWidthsAsString | ( | bool | subset = false, |
|
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
|||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL | |||
| ) | const [virtual] |
Get the character width array as string.
| subset | flag whether subsetting is enabled | |
| usedGlyphs | the list of used glyphs | |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
| virtual bool wxPdfFontDataTrueType::LoadFontMetrics | ( | wxXmlNode * | root | ) | [virtual] |
Load the font metrics XML file.
| root | the root node of the XML font metric file |
Reimplemented from wxPdfFontData.
| virtual size_t wxPdfFontDataTrueType::WriteFontData | ( | wxOutputStream * | fontData, | |
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
|||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL | |||
| ) | [virtual] |
Write font data.
| fontData | the output stream | |
| usedGlyphs | the list of used glyphs | |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
wxMBConv* wxPdfFontDataTrueType::m_conv [protected] |
Assocated encoding converter.
1.6.1