wxPdfDocument 0.9.2
|
Class representing the Adobe core fonts. (For internal use only) More...
#include <pdffontdatacore.h>
Public Member Functions | |
wxPdfFontDataCore () | |
Default constructor. | |
wxPdfFontDataCore (const wxString &family, const wxString &name, const wxString &alias, short *cwArray, const wxPdfKernPairDesc *kpArray, const wxPdfFontDescription &desc) | |
Constructor. | |
virtual | ~wxPdfFontDataCore () |
Default destructor. | |
virtual wxString | GetWidthsAsString (bool subset=false, 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 wxMBConv * | GetEncodingConv () const |
Get the associated encoding converter. |
Class representing the Adobe core fonts. (For internal use only)
wxPdfFontDataCore::wxPdfFontDataCore | ( | ) |
Default constructor.
wxPdfFontDataCore::wxPdfFontDataCore | ( | const wxString & | family, |
const wxString & | name, | ||
const wxString & | alias, | ||
short * | cwArray, | ||
const wxPdfKernPairDesc * | kpArray, | ||
const wxPdfFontDescription & | desc | ||
) |
Constructor.
family | the family name of the font |
name | the font name |
alias | the alias name of the font or an empty string |
cwArray | an array with the character widths |
kpArray | an array with kerning pairs |
desc | a font description |
virtual wxPdfFontDataCore::~wxPdfFontDataCore | ( | ) | [virtual] |
Default destructor.
virtual bool wxPdfFontDataCore::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 wxPdfFontDataCore::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 wxMBConv* wxPdfFontDataCore::GetEncodingConv | ( | ) | const [virtual] |
Get the associated encoding converter.
Reimplemented from wxPdfFontData.
virtual double wxPdfFontDataCore::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 wxPdfFontDataCore::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.