12#ifndef _PDF_FONT_DATA_CORE_H_
13#define _PDF_FONT_DATA_CORE_H_
16#include <wx/strconv.h>
18#include <wx/xml/xml.h>
47 wxPdfFontDataCore(
const wxString& family,
const wxString& name,
const wxString& alias,
61 virtual wxString
GetWidthsAsString(
bool subset =
false, wxPdfSortedArrayInt* usedGlyphs = NULL, wxPdfChar2GlyphMap* subsetGlyphs = NULL)
const;
71 virtual double GetStringWidth(
const wxString& s,
const wxPdfEncoding* encoding = NULL,
bool withKerning =
false,
double charSpacing = 0)
const;
90 wxPdfSortedArrayInt* usedGlyphs = NULL,
91 wxPdfChar2GlyphMap* subsetGlyphs = NULL)
const;
98 virtual wxMBConv* GetEncodingConv()
const;
Class representing a font encoding.
Definition: pdfencoding.h:25
Class representing the Adobe core fonts. (For internal use only)
Definition: pdffontdatacore.h:33
wxPdfFontDataCore()
Default constructor.
Base class for all fonts. (For internal use only)
Definition: pdffontdata.h:55
virtual wxString GetWidthsAsString(bool subset=false, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const
Get the character width array as string.
Definition: pdffontdata.cpp:691
virtual double GetStringWidth(const wxString &s, const wxPdfEncoding *encoding=NULL, bool withKerning=false, double charSpacing=0) const
Get the width of a string.
Definition: pdffontdata.cpp:700
virtual bool CanShow(const wxString &s, const wxPdfEncoding *encoding=NULL) const
Check whether the font can show all characters of a given string.
Definition: pdffontdata.cpp:778
virtual wxString ConvertCID2GID(const wxString &s, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const
Convert character codes to glyph numbers.
Definition: pdffontdata.cpp:821
Class representing a font description.
Definition: pdffontdescription.h:24
Class representing a kerning pair (for internal use only)
Definition: pdfcorefontdata.h:18
Definition of array types.
Compile time switches for the wxPdfDocument component.