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, wxPdfChar2GlyphMap *convMap=NULL, bool withKerning=false) const
 Get the width of a string.
virtual wxString ConvertCID2GID (const wxString &s, wxPdfChar2GlyphMap *convMap=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL)
 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:
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.


Member Function Documentation

virtual wxString wxPdfFontDataCore::ConvertCID2GID ( const wxString &  s,
wxPdfChar2GlyphMap convMap = NULL,
wxPdfSortedArrayInt *  usedGlyphs = NULL,
wxPdfChar2GlyphMap subsetGlyphs = NULL 
) [virtual]

Convert character codes to glyph numbers.

Parameters:
s the string to be converted
convMap the character to glyph mapping
usedGlyphs the list of used glyphs
subsetGlyphs the 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,
wxPdfChar2GlyphMap convMap = NULL,
bool  withKerning = false 
) const [virtual]

Get the width of a string.

Parameters:
s the string for which the width should be calculated
convMap the character to glyph mapping
withKerning flag 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:
subset flag whether subsetting is enabled
usedGlyphs the list of used glyphs
subsetGlyphs the 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:

Generated on Mon Oct 12 22:02:42 2009 for wxPdfDocument by  doxygen 1.6.1