Class representing Type 0 fonts. (For internal use only) More...
#include <pdffontdatatype0.h>
Public Member Functions | |
| wxPdfFontDataType0 () | |
| < Default constructor | |
| wxPdfFontDataType0 (const wxString &family, const wxString &name, const wxString &encoding, const wxString &ordering, const wxString &supplement, const wxString &cmap, short *cwArray, const wxPdfFontDescription &desc) | |
| Constructor. | |
| virtual | ~wxPdfFontDataType0 () |
| Default destructor. | |
| virtual wxString | GetWidthsAsString (bool subset, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Get the character width array as string. | |
| 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 bool | LoadFontMetrics (wxXmlNode *root) |
| Load the font metrics XML file. | |
| virtual wxMBConv * | GetEncodingConv () const |
| Get the associated encoding converter. | |
| virtual void | CreateDefaultEncodingConv () |
| Create the associated default encoding converter. | |
| void | SetHalfWidthRanges (bool hwRange, wxChar hwFirst, wxChar hwLast) |
Protected Member Functions | |
| bool | HasHalfWidthRange () const |
| Check whether the font has a half width range. | |
| wxChar | HalfWidthRangeFirst () const |
| Get the first character in the half width range. | |
| wxChar | HalfWidthRangeLast () const |
| Get the last character in the half width range. | |
Protected Attributes | |
| bool | m_hwRange |
| Flag whether the font has a half width range. | |
| wxChar | m_hwFirst |
| CID of the first half width character. | |
| wxChar | m_hwLast |
| CID of the last half width character. | |
| wxMBConv * | m_conv |
| Assocated encoding converter. | |
Class representing Type 0 fonts. (For internal use only)
| wxPdfFontDataType0::wxPdfFontDataType0 | ( | ) |
< Default constructor
| wxPdfFontDataType0::wxPdfFontDataType0 | ( | const wxString & | family, |
| const wxString & | name, | ||
| const wxString & | encoding, | ||
| const wxString & | ordering, | ||
| const wxString & | supplement, | ||
| const wxString & | cmap, | ||
| short * | cwArray, | ||
| const wxPdfFontDescription & | desc | ||
| ) |
Constructor.
| family | the family name of the font |
| name | the font name |
| encoding | the font's encoding |
| ordering | the font's registry ordering |
| supplement | the font's registry supplement |
| cmap | the font's cmap |
| cwArray | an array with the character widths |
| desc | a font description |
| virtual wxPdfFontDataType0::~wxPdfFontDataType0 | ( | ) | [virtual] |
Default destructor.
| virtual bool wxPdfFontDataType0::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 wxPdfFontDataType0::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 void wxPdfFontDataType0::CreateDefaultEncodingConv | ( | ) | [virtual] |
Create the associated default encoding converter.
Reimplemented from wxPdfFontData.
| virtual wxMBConv* wxPdfFontDataType0::GetEncodingConv | ( | ) | const [inline, virtual] |
Get the associated encoding converter.
Reimplemented from wxPdfFontData.
| virtual double wxPdfFontDataType0::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 wxPdfFontDataType0::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.
| wxChar wxPdfFontDataType0::HalfWidthRangeFirst | ( | ) | const [inline, protected] |
Get the first character in the half width range.
| wxChar wxPdfFontDataType0::HalfWidthRangeLast | ( | ) | const [inline, protected] |
Get the last character in the half width range.
| bool wxPdfFontDataType0::HasHalfWidthRange | ( | ) | const [inline, protected] |
Check whether the font has a half width range.
| virtual bool wxPdfFontDataType0::LoadFontMetrics | ( | wxXmlNode * | root ) | [virtual] |
Load the font metrics XML file.
| root | the root node of the XML font metric file |
Reimplemented from wxPdfFontData.
| void wxPdfFontDataType0::SetHalfWidthRanges | ( | bool | hwRange, |
| wxChar | hwFirst, | ||
| wxChar | hwLast | ||
| ) |
| hwRange | flag whether font has a half-width range |
| hwFirst | CID of the first half-width character |
| hwLast | CID of the last half-width character |
wxMBConv* wxPdfFontDataType0::m_conv [protected] |
Assocated encoding converter.
wxChar wxPdfFontDataType0::m_hwFirst [protected] |
CID of the first half width character.
wxChar wxPdfFontDataType0::m_hwLast [protected] |
CID of the last half width character.
bool wxPdfFontDataType0::m_hwRange [protected] |
Flag whether the font has a half width range.
1.7.2