wxPdfDocument 0.9.2
Public Member Functions
wxPdfFontDataCore Class Reference

Class representing the Adobe core fonts. (For internal use only) More...

#include <pdffontdatacore.h>

Inheritance diagram for wxPdfFontDataCore:
wxPdfFontData

List of all members.

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.

Detailed Description

Class representing the Adobe core fonts. (For internal use only)


Constructor & Destructor Documentation

wxPdfFontDataCore::wxPdfFontDataCore ( )

Default constructor.

wxPdfFontDataCore::wxPdfFontDataCore ( const wxString &  family,
const wxString &  name,
const wxString &  alias,
short *  cwArray,
const wxPdfKernPairDesc kpArray,
const wxPdfFontDescription desc 
)

Constructor.

Parameters:
familythe family name of the font
namethe font name
aliasthe alias name of the font or an empty string
cwArrayan array with the character widths
kpArrayan array with kerning pairs
desca font description
virtual wxPdfFontDataCore::~wxPdfFontDataCore ( ) [virtual]

Default destructor.


Member Function Documentation

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.

Parameters:
sthe string to be checked
encodingthe character to glyph mapping
Returns:
TRUE if the font can show all characters of the string, FALSE otherwise

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.

Parameters:
sthe string to be converted
encodingthe character to glyph mapping
usedGlyphsthe list of used glyphs
subsetGlyphsthe mapping of glyphs to subset glyphs
Returns:
the converted string

Reimplemented from wxPdfFontData.

virtual wxMBConv* wxPdfFontDataCore::GetEncodingConv ( ) const [virtual]

Get the associated encoding converter.

Returns:
the encoding converter associated with this font

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.

Parameters:
sthe string for which the width should be calculated
encodingthe character to glyph mapping
withKerningflag indicating whether kerning should be taken into account
Returns:
the width of the string

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.

Parameters:
subsetflag whether subsetting is enabled
usedGlyphsthe list of used glyphs
subsetGlyphsthe mapping of glyphs to subset glyphs
Returns:
the string representation of the character widths

Reimplemented from wxPdfFontData.


The documentation for this class was generated from the following file: