Class representing Unicode TrueType fonts. (For internal use only) More...
#include <pdffontdatatruetype.h>
Public Member Functions | |
| wxPdfFontDataTrueTypeUnicode () | |
| < Default constructor | |
| virtual | ~wxPdfFontDataTrueTypeUnicode () |
| Default destructor. | |
| virtual bool | Initialize () |
| Initialize font data. | |
| virtual bool | HasVoltData () const |
| Check whether VOLT data are available. | |
| virtual wxString | ApplyVoltData (const wxString &s) const |
| Apply VOLT data. | |
| virtual double | GetStringWidth (const wxString &s, const wxPdfEncoding *encoding=NULL, bool withKerning=false) const |
| Get the width of a string. | |
| virtual bool | CanShow (const wxString &s, const wxPdfEncoding *encoding=NULL) const |
| Check whether the font oan show all characters of a given string. | |
| virtual wxString | ConvertCID2GID (const wxString &s, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Convert character codes to glyph numbers. | |
| virtual wxString | ConvertGlyph (wxUint32 glyph, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Convert glyph number to string. | |
| virtual wxString | GetWidthsAsString (bool subset, 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 size_t | WriteUnicodeMap (wxOutputStream *mapData, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write character/glyph to unicode mapping. | |
| virtual wxMBConv * | GetEncodingConv () const |
| Get the associated encoding converter. | |
| virtual void | CreateDefaultEncodingConv () |
| Create the associated default encoding converter. | |
| virtual void | SetGlyphWidths (const wxPdfArrayUint16 &glyphWidths) |
| Set glyph widths array. | |
Protected Attributes | |
| wxPdfArrayUint16 * | m_gw |
| Array of glyph widths. | |
| wxMBConv * | m_conv |
| Associated encoding converter. | |
| wxPdfVolt * | m_volt |
| VOLT data. | |
Class representing Unicode TrueType fonts. (For internal use only)
| wxPdfFontDataTrueTypeUnicode::wxPdfFontDataTrueTypeUnicode | ( | ) |
< Default constructor
| virtual wxPdfFontDataTrueTypeUnicode::~wxPdfFontDataTrueTypeUnicode | ( | ) | [virtual] |
Default destructor.
| virtual wxString wxPdfFontDataTrueTypeUnicode::ApplyVoltData | ( | const wxString & | s ) | const [virtual] |
Apply VOLT data.
| s | text string for which VOLT data should be applied |
Reimplemented from wxPdfFontData.
| virtual bool wxPdfFontDataTrueTypeUnicode::CanShow | ( | const wxString & | s, |
| const wxPdfEncoding * | encoding = NULL |
||
| ) | const [virtual] |
Check whether the font oan show all characters of a given string.
| s | the string to be checked |
| encoding | the character to glyph mapping |
Reimplemented from wxPdfFontData.
| virtual wxString wxPdfFontDataTrueTypeUnicode::ConvertCID2GID | ( | const wxString & | s, |
| const wxPdfEncoding * | encoding = NULL, |
||
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL |
||
| ) | const [virtual] |
Convert character codes to glyph numbers.
| s | the string to be converted |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
| virtual wxString wxPdfFontDataTrueTypeUnicode::ConvertGlyph | ( | wxUint32 | glyph, |
| const wxPdfEncoding * | encoding = NULL, |
||
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL |
||
| ) | const [virtual] |
Convert glyph number to string.
| glyph | the glyph to be converted |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
| virtual void wxPdfFontDataTrueTypeUnicode::CreateDefaultEncodingConv | ( | ) | [virtual] |
Create the associated default encoding converter.
Reimplemented from wxPdfFontData.
| virtual wxMBConv* wxPdfFontDataTrueTypeUnicode::GetEncodingConv | ( | ) | const [inline, virtual] |
Get the associated encoding converter.
Reimplemented from wxPdfFontData.
| virtual double wxPdfFontDataTrueTypeUnicode::GetStringWidth | ( | const wxString & | s, |
| const wxPdfEncoding * | encoding = NULL, |
||
| bool | withKerning = false |
||
| ) | const [virtual] |
Get the width of a string.
| s | the string for which the width should be calculated |
| encoding | the character to glyph mapping |
| withKerning | flag indicating whether kerning should be taken into account |
Reimplemented from wxPdfFontData.
| virtual wxString wxPdfFontDataTrueTypeUnicode::GetWidthsAsString | ( | bool | subset, |
| 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 wxPdfFontDataTrueTypeUnicode::HasVoltData | ( | ) | const [inline, virtual] |
Check whether VOLT data are available.
Reimplemented from wxPdfFontData.
| virtual bool wxPdfFontDataTrueTypeUnicode::Initialize | ( | ) | [virtual] |
Initialize font data.
Reimplemented from wxPdfFontData.
| virtual bool wxPdfFontDataTrueTypeUnicode::LoadFontMetrics | ( | wxXmlNode * | root ) | [virtual] |
Load the font metrics XML file.
| root | the root node of the XML font metric file |
Reimplemented from wxPdfFontData.
| virtual void wxPdfFontDataTrueTypeUnicode::SetGlyphWidths | ( | const wxPdfArrayUint16 & | glyphWidths ) | [virtual] |
Set glyph widths array.
| glyphWidths | array with glyph widths |
Reimplemented from wxPdfFontData.
| virtual size_t wxPdfFontDataTrueTypeUnicode::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.
| virtual size_t wxPdfFontDataTrueTypeUnicode::WriteUnicodeMap | ( | wxOutputStream * | mapData, |
| const wxPdfEncoding * | encoding = NULL, |
||
| wxPdfSortedArrayInt * | usedGlyphs = NULL, |
||
| wxPdfChar2GlyphMap * | subsetGlyphs = NULL |
||
| ) | [virtual] |
Write character/glyph to unicode mapping.
| mapData | the output stream |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented from wxPdfFontData.
wxMBConv* wxPdfFontDataTrueTypeUnicode::m_conv [protected] |
Associated encoding converter.
wxPdfArrayUint16* wxPdfFontDataTrueTypeUnicode::m_gw [protected] |
Array of glyph widths.
wxPdfVolt* wxPdfFontDataTrueTypeUnicode::m_volt [protected] |
VOLT data.
1.7.2