#include <pdffont.h>
Inheritance diagram for wxPdfFont:

Public Member Functions | |
| wxPdfFont (int index, const wxString &name=wxEmptyString, short *cwArray=NULL, const wxPdfFontDescription &desc=wxPdfFontDescription()) | |
| Font constructor. | |
| virtual | ~wxPdfFont () |
| Default destructor. | |
| void | SetIndex (int index) |
| Set font index. | |
| int | GetIndex () |
| Get font index. | |
| void | SetObjIndex (int n) |
| Set font object index. | |
| int | GetObjIndex () |
| Get font object index. | |
| void | SetFileIndex (int fn) |
| Set font file index. | |
| int | GetFileIndex () |
| Get font file index. | |
| void | SetDiffIndex (int ndiff) |
| Set encoding differences index. | |
| int | GetDiffIndex () |
| Get encoding differences index. | |
| void | SetType (const wxString &type) |
| Set font type. | |
| wxString | GetType () |
| Get font type. | |
| void | SetName (const wxString &name) |
| Set font name. | |
| wxString | GetName () |
| Get font name. | |
| void | SetUnderlinePosition (int up) |
| Set underline position. | |
| int | GetUnderlinePosition () |
| Get underline position. | |
| void | SetUnderlineThickness (int ut) |
| Set underline thickness. | |
| int | GetUnderlineThickness () |
| Get underline thickness. | |
| int | GetBBoxTopPosition () |
| Get bounding box top position. | |
| void | SetEncoding (const wxString &enc) |
| Set encoding. | |
| wxString | GetEncoding () |
| Get encoding. | |
| bool | HasDiffs () |
| Check whether the font has differences to WinAnsi encoding. | |
| void | SetDiffs (const wxString &diffs) |
| Set encoding differences. | |
| wxString | GetDiffs () |
| Get encoding differences. | |
| void | SetFilePath (const wxString &path) |
| Set path of font files. | |
| wxString | GetFilePath () |
| Get path of font files. | |
| bool | HasFile () |
| Check whether the font has an associated font file. | |
| void | SetFontFile (const wxString &file) |
| Set the name of the Character-to-Glyph mapping file. | |
| wxString | GetFontFile () |
| Get the name of the associated font file. | |
| void | SetCtgFile (const wxString &ctg) |
| Set the name of the Character-to-Glyph mapping file. | |
| wxString | GetCtgFile () |
| Get the name of the Character-to-Glyph mapping file. | |
| void | SetSize1 (int size1) |
| Get font file size 1. | |
| int | GetSize1 () |
| Get font file size 1. | |
| bool | HasSize2 () |
| Check whether the file has a size 2. | |
| void | SetSize2 (int size2) |
| Get font file size 2. | |
| int | GetSize2 () |
| Get font file size 2 (Type 1 only). | |
| wxString | GetCMap () |
| Get the font's CMap (Type 0 only). | |
| wxString | GetOrdering () |
| Get font ordering. | |
| wxString | GetSupplement () |
| Get font supplement /Type 0 only). | |
| void | SetCharWidthMap (wxPdfCharWidthMap *cw) |
| Set char width map. | |
| const wxPdfCharWidthMap * | GetCharWidthMap () |
| Get char width map. | |
| void | SetGlyphNumberMap (wxPdfCharWidthMap *gn) |
| Set glyph number map. | |
| const wxPdfCharWidthMap * | GetGlyphNumberMap () |
| Get glyph number map. | |
| wxString | CreateSubsetPrefix () const |
| Create a subset name prefix. | |
| void | SetSubset (bool subset) |
| Set subset flag if font subsetting is supported. | |
| virtual wxString | GetWidthsAsString () |
| Get the character width array as string. | |
| virtual double | GetStringWidth (const wxString &s) |
| Get the width of a string. | |
| virtual void | UpdateUsedChars (const wxString &s) |
| Update the list of used characters. | |
| virtual bool | SupportsSubset () |
| Check whether the font supports subsetting. | |
| virtual int | CreateSubset (wxInputStream *fontFile, wxOutputStream *fontSubset) |
| Create font subset. | |
| virtual void | SetDesc (const wxPdfFontDescription &desc) |
| Set the font description. | |
| virtual const wxPdfFontDescription & | GetDesc () const |
| Get the font description. | |
| virtual bool | LoadFontMetrics (wxXmlNode *WXUNUSED(root)) |
| Load the font metrics XML file. | |
| virtual wxString | ConvertCID2GID (const wxString &s) |
| Convert character codes to glyph numbers. | |
| virtual wxMBConv * | GetEncodingConv () |
| Get the associated encoding converter. | |
Static Public Member Functions | |
| static wxMBConv * | GetWinEncodingConv () |
| Get the default WinAnsi encoding converter. | |
Protected Attributes | |
| int | m_index |
| Index number of this font. | |
| int | m_n |
| Font object index. | |
| int | m_fn |
| Font file index. | |
| int | m_ndiff |
| Index of encoding differences object. | |
| wxString | m_type |
| Font type. | |
| wxString | m_name |
| Font name. | |
| wxPdfCharWidthMap * | m_cw |
| Array with character widths. | |
| wxPdfCharWidthMap * | m_gn |
| Array with glyph numbers. | |
| wxPdfFontDescription | m_desc |
| Font description. | |
| wxString | m_enc |
| Encoding. | |
| wxString | m_diffs |
| Encoding differences. | |
| wxString | m_path |
| Path of font files. | |
| wxString | m_file |
| Filename of font program. | |
| wxString | m_ctg |
| Filename of char to glyph mapping. | |
| int | m_size1 |
| TrueType file size or Type1 file size 1. | |
| int | m_size2 |
| Type1 file size 2. | |
| wxString | m_cmap |
| CMap of a CID font. | |
| wxString | m_ordering |
| Ordering of a CID font. | |
| wxString | m_supplement |
| Supplement of a CID font. | |
| wxPdfSortedArrayInt * | m_usedChars |
| Array of used characters. | |
| bool | m_subset |
| Flag whether the font uses subsetting. | |
| bool | m_subsetSupport |
| Flag whether the font supports subsetting. | |
Static Protected Attributes | |
| static wxMBConv * | ms_winEncoding |
| WinAnsi converter. | |
| wxPdfFont::wxPdfFont | ( | int | index, | |
| const wxString & | name = wxEmptyString, |
|||
| short * | cwArray = NULL, |
|||
| const wxPdfFontDescription & | desc = wxPdfFontDescription() | |||
| ) |
Font constructor.
| wxPdfFont::~wxPdfFont | ( | ) | [virtual] |
Default destructor.
| void wxPdfFont::SetIndex | ( | int | index | ) | [inline] |
Set font index.
| int wxPdfFont::GetIndex | ( | ) | [inline] |
Get font index.
| void wxPdfFont::SetObjIndex | ( | int | n | ) | [inline] |
Set font object index.
| int wxPdfFont::GetObjIndex | ( | ) | [inline] |
Get font object index.
| void wxPdfFont::SetFileIndex | ( | int | fn | ) | [inline] |
Set font file index.
| int wxPdfFont::GetFileIndex | ( | ) | [inline] |
Get font file index.
| void wxPdfFont::SetDiffIndex | ( | int | ndiff | ) | [inline] |
Set encoding differences index.
| int wxPdfFont::GetDiffIndex | ( | ) | [inline] |
Get encoding differences index.
| void wxPdfFont::SetType | ( | const wxString & | type | ) | [inline] |
Set font type.
| wxString wxPdfFont::GetType | ( | ) | [inline] |
Get font type.
| void wxPdfFont::SetName | ( | const wxString & | name | ) | [inline] |
Set font name.
| wxString wxPdfFont::GetName | ( | ) |
Get font name.
| void wxPdfFont::SetUnderlinePosition | ( | int | up | ) | [inline] |
Set underline position.
| int wxPdfFont::GetUnderlinePosition | ( | ) | [inline] |
Get underline position.
| void wxPdfFont::SetUnderlineThickness | ( | int | ut | ) | [inline] |
Set underline thickness.
| int wxPdfFont::GetUnderlineThickness | ( | ) | [inline] |
Get underline thickness.
| int wxPdfFont::GetBBoxTopPosition | ( | ) |
Get bounding box top position.
| void wxPdfFont::SetEncoding | ( | const wxString & | enc | ) | [inline] |
Set encoding.
| wxString wxPdfFont::GetEncoding | ( | ) | [inline] |
Get encoding.
| bool wxPdfFont::HasDiffs | ( | ) | [inline] |
Check whether the font has differences to WinAnsi encoding.
| void wxPdfFont::SetDiffs | ( | const wxString & | diffs | ) | [inline] |
Set encoding differences.
| wxString wxPdfFont::GetDiffs | ( | ) | [inline] |
Get encoding differences.
| void wxPdfFont::SetFilePath | ( | const wxString & | path | ) | [inline] |
Set path of font files.
| wxString wxPdfFont::GetFilePath | ( | ) | [inline] |
Get path of font files.
| bool wxPdfFont::HasFile | ( | ) | [inline] |
Check whether the font has an associated font file.
| void wxPdfFont::SetFontFile | ( | const wxString & | file | ) | [inline] |
Set the name of the Character-to-Glyph mapping file.
| wxString wxPdfFont::GetFontFile | ( | ) | [inline] |
Get the name of the associated font file.
| void wxPdfFont::SetCtgFile | ( | const wxString & | ctg | ) | [inline] |
Set the name of the Character-to-Glyph mapping file.
| wxString wxPdfFont::GetCtgFile | ( | ) | [inline] |
Get the name of the Character-to-Glyph mapping file.
| void wxPdfFont::SetSize1 | ( | int | size1 | ) | [inline] |
Get font file size 1.
| int wxPdfFont::GetSize1 | ( | ) | [inline] |
Get font file size 1.
| bool wxPdfFont::HasSize2 | ( | ) | [inline] |
Check whether the file has a size 2.
| void wxPdfFont::SetSize2 | ( | int | size2 | ) | [inline] |
Get font file size 2.
| int wxPdfFont::GetSize2 | ( | ) | [inline] |
Get font file size 2 (Type 1 only).
| wxString wxPdfFont::GetCMap | ( | ) | [inline] |
Get the font's CMap (Type 0 only).
| wxString wxPdfFont::GetOrdering | ( | ) | [inline] |
Get font ordering.
| wxString wxPdfFont::GetSupplement | ( | ) | [inline] |
Get font supplement /Type 0 only).
| void wxPdfFont::SetCharWidthMap | ( | wxPdfCharWidthMap * | cw | ) | [inline] |
Set char width map.
| const wxPdfCharWidthMap* wxPdfFont::GetCharWidthMap | ( | ) | [inline] |
Get char width map.
| void wxPdfFont::SetGlyphNumberMap | ( | wxPdfCharWidthMap * | gn | ) | [inline] |
Set glyph number map.
| const wxPdfCharWidthMap* wxPdfFont::GetGlyphNumberMap | ( | ) | [inline] |
Get glyph number map.
| wxString wxPdfFont::CreateSubsetPrefix | ( | ) | const |
Create a subset name prefix.
| void wxPdfFont::SetSubset | ( | bool | subset | ) |
Set subset flag if font subsetting is supported.
| wxString wxPdfFont::GetWidthsAsString | ( | ) | [virtual] |
Get the character width array as string.
Reimplemented in wxPdfFontTrueTypeUnicode, wxPdfFontOpenTypeUnicode, and wxPdfFontType0.
| double wxPdfFont::GetStringWidth | ( | const wxString & | s | ) | [virtual] |
Get the width of a string.
Reimplemented in wxPdfFontTrueType, wxPdfFontTrueTypeUnicode, wxPdfFontOpenTypeUnicode, wxPdfFontType1, and wxPdfFontType0.
| void wxPdfFont::UpdateUsedChars | ( | const wxString & | s | ) | [virtual] |
| virtual bool wxPdfFont::SupportsSubset | ( | ) | [inline, virtual] |
Check whether the font supports subsetting.
Reimplemented in wxPdfFontTrueType, wxPdfFontTrueTypeUnicode, and wxPdfFontOpenTypeUnicode.
| int wxPdfFont::CreateSubset | ( | wxInputStream * | fontFile, | |
| wxOutputStream * | fontSubset | |||
| ) | [virtual] |
Create font subset.
Reimplemented in wxPdfFontTrueType, wxPdfFontTrueTypeUnicode, wxPdfFontOpenTypeUnicode, wxPdfFontType1, and wxPdfFontType0.
| virtual void wxPdfFont::SetDesc | ( | const wxPdfFontDescription & | desc | ) | [inline, virtual] |
Set the font description.
| virtual const wxPdfFontDescription& wxPdfFont::GetDesc | ( | ) | const [inline, virtual] |
Get the font description.
| virtual bool wxPdfFont::LoadFontMetrics | ( | wxXmlNode * | WXUNUSED(root) | ) | [inline, virtual] |
Load the font metrics XML file.
| wxString wxPdfFont::ConvertCID2GID | ( | const wxString & | s | ) | [virtual] |
| wxMBConv * wxPdfFont::GetEncodingConv | ( | ) | [virtual] |
Get the associated encoding converter.
Reimplemented in wxPdfFontTrueType, wxPdfFontTrueTypeUnicode, wxPdfFontOpenTypeUnicode, wxPdfFontType1, and wxPdfFontType0.
| wxMBConv * wxPdfFont::GetWinEncodingConv | ( | ) | [static] |
Get the default WinAnsi encoding converter.
int wxPdfFont::m_index [protected] |
Index number of this font.
int wxPdfFont::m_n [protected] |
Font object index.
int wxPdfFont::m_fn [protected] |
Font file index.
int wxPdfFont::m_ndiff [protected] |
Index of encoding differences object.
wxString wxPdfFont::m_type [protected] |
Font type.
wxString wxPdfFont::m_name [protected] |
Font name.
wxPdfCharWidthMap* wxPdfFont::m_cw [protected] |
Array with character widths.
wxPdfCharWidthMap* wxPdfFont::m_gn [protected] |
Array with glyph numbers.
wxPdfFontDescription wxPdfFont::m_desc [protected] |
Font description.
wxString wxPdfFont::m_enc [protected] |
Encoding.
wxString wxPdfFont::m_diffs [protected] |
Encoding differences.
wxString wxPdfFont::m_path [protected] |
Path of font files.
wxString wxPdfFont::m_file [protected] |
Filename of font program.
wxString wxPdfFont::m_ctg [protected] |
Filename of char to glyph mapping.
int wxPdfFont::m_size1 [protected] |
TrueType file size or Type1 file size 1.
int wxPdfFont::m_size2 [protected] |
Type1 file size 2.
wxString wxPdfFont::m_cmap [protected] |
CMap of a CID font.
wxString wxPdfFont::m_ordering [protected] |
Ordering of a CID font.
wxString wxPdfFont::m_supplement [protected] |
Supplement of a CID font.
wxPdfSortedArrayInt* wxPdfFont::m_usedChars [protected] |
Array of used characters.
bool wxPdfFont::m_subset [protected] |
Flag whether the font uses subsetting.
bool wxPdfFont::m_subsetSupport [protected] |
Flag whether the font supports subsetting.
wxMBConv * wxPdfFont::ms_winEncoding [static, protected] |
WinAnsi converter.
1.5.1-p1