|
| 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, double charSpacing=0) 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.
|
|
| wxPdfFontData () |
| Default constructor.
|
|
virtual | ~wxPdfFontData () |
| Default destructor.
|
|
bool | IsInitialized () const |
| Check initialization state.
|
|
void | SetInitialized (bool initialized) |
| Set initialization state.
|
|
void | SetType (const wxString &type) |
| Set font type.
|
|
wxString | GetType () const |
| Get font type.
|
|
void | SetFamily (const wxString &name) |
| Set font family name.
|
|
wxString | GetFamily () const |
| Get font family name.
|
|
void | SetAlias (const wxString &alias) |
| Set font family alias.
|
|
wxString | GetAlias () const |
| Get font family alias.
|
|
void | SetName (const wxString &name) |
| Set font name.
|
|
wxString | GetName () const |
| Get font name.
|
|
void | SetFullNames (const wxArrayString &fullNames) |
| Set list of full font names.
|
|
wxArrayString | GetFullNames () const |
| Get list of full font names.
|
|
void | SetStyle (int style) |
| Set font style.
|
|
void | SetStyle (const wxString &style) |
| Set font style.
|
|
void | SetStyleFromName () |
| Set font style based on font name.
|
|
int | GetStyle () const |
| Get font style.
|
|
bool | EmbedRequired () |
| Set embed support flag.
|
|
bool | EmbedSupported () const |
| Check whether the font embedding is required.
|
|
bool | SubsetSupported () const |
| Check whether the font subsetting is supported.
|
|
void | SetEmbedSupported (bool embedSupported) |
| Set embed support flag.
|
|
void | SetSubsetSupported (bool subsetSupported) |
| Set subset support flag.
|
|
void | SetFontFileName (const wxString &fontFileName) |
| Set fully qualified font file name.
|
|
wxString | GetFontFileName () const |
| Get fully qualified font file name.
|
|
void | SetFontIndex (int fontIndex) |
| Set font index in case the font is member of a font collection.
|
|
int | GetFontIndex () const |
| Get font index.
|
|
bool | HasCff () const |
| Check whether the font is in compact font format.
|
|
size_t | GetCffOffset () const |
| Get the offset of the CFF section within the font file.
|
|
size_t | GetCffLength () const |
| Get the length of the CFF section.
|
|
void | SetUnderlinePosition (int up) |
| Set underline position.
|
|
int | GetUnderlinePosition () const |
| Get underline position.
|
|
void | SetUnderlineThickness (int ut) |
| Set underline thickness.
|
|
int | GetUnderlineThickness () const |
| Get underline thickness.
|
|
int | GetBBoxTopPosition () const |
| Get bounding box top position.
|
|
void | SetEncoding (const wxString &encoding) |
| Set encoding.
|
|
wxString | GetEncoding () const |
| Get encoding.
|
|
const wxPdfEncoding * | GetBaseEncoding () const |
| Get encoding.
|
|
bool | HasDiffs () const |
| Check whether the font has differences to WinAnsi encoding.
|
|
void | SetDiffs (const wxString &diffs) |
| Set encoding differences.
|
|
wxString | GetDiffs () const |
| Get encoding differences.
|
|
void | SetFilePath (const wxString &path) |
| Set path of font files.
|
|
wxString | GetFilePath () const |
| Get path of font files.
|
|
bool | HasFile () const |
| Check whether the font has an associated font file.
|
|
void | SetFontFile (const wxString &file) |
| Set the name of the font file created by MakeFont.
|
|
wxString | GetFontFile () const |
| Get the name of the associated font file.
|
|
void | SetCtgFile (const wxString &ctg) |
| Set the name of the character to glyph mapping file created by MakeFont.
|
|
wxString | GetCtgFile () const |
| Get the name of the character to glyph mapping file created by MakeFont.
|
|
void | SetSize1 (size_t size1) |
| Get font file size 1.
|
|
size_t | GetSize1 () const |
| Get font file size 1.
|
|
bool | HasSize2 () const |
| Check whether the file has a size 2.
|
|
void | SetSize2 (size_t size2) |
| Set font file size 2.
|
|
size_t | GetSize2 () const |
| Get font file size 2 (Type 1 only)
|
|
void | SetCMap (const wxString &cmap) |
| Set font CMap.
|
|
wxString | GetCMap () const |
| Get the font's CMap (Type 0 only)
|
|
void | SetOrdering (const wxString &ordering) |
| Set font ordering.
|
|
wxString | GetOrdering () const |
| Get font ordering.
|
|
void | SetSupplement (const wxString &supplement) |
| Set font supplement.
|
|
wxString | GetSupplement () const |
| Get font supplement (Type 0 only)
|
|
void | SetGlyphWidthMap (wxPdfGlyphWidthMap *cw) |
| Set glyph width map.
|
|
const wxPdfGlyphWidthMap * | GetGlyphWidthMap () const |
| Get glyph width map.
|
|
void | SetChar2GlyphMap (wxPdfChar2GlyphMap *gn) |
| Set character to glyph number map.
|
|
const wxPdfChar2GlyphMap * | GetChar2GlyphMap () const |
| Get character to glyph number map.
|
|
void | SetKernPairMap (wxPdfKernPairMap *kp) |
| Set kerning pair map.
|
|
const wxPdfKernPairMap * | GetKernPairMap () const |
| Get kerning pair map.
|
|
int | GetKerningWidth (const wxString &s) const |
| Get width of string taking kerning into account.
|
|
wxArrayInt | GetKerningWidthArray (const wxString &s) const |
| Get kerning width array.
|
|
void | SetSubset (bool subset) |
| Set subset flag if font subsetting is supported.
|
|
virtual bool | Initialize () |
| Initialize font data.
|
|
virtual bool | HasVoltData () const |
| Check whether VOLT data are available.
|
|
virtual wxString | ApplyVoltData (const wxString &s) const |
| Applay VOLT data.
|
|
virtual wxString | ConvertToValid (const wxString &s, wxUniChar replace=wxS('?')) const |
| Force string to valid string in respect of the current font encoding.
|
|
virtual wxString | ConvertGlyph (wxUint32 glyph, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Convert glyph number to string.
|
|
virtual bool | GetGlyphNames (wxArrayString &glyphNames) const |
| Get list of glyph names supported by this font.
|
|
virtual size_t | WriteFontData (wxOutputStream *fontData, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write font data.
|
|
virtual size_t | WriteUnicodeMap (wxOutputStream *mapData, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write character/glyph to unicode mapping.
|
|
virtual size_t | WriteCIDToGIDMap (wxOutputStream *mapData, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write CID to GID mapping.
|
|
virtual size_t | WriteCIDSet (wxOutputStream *setData, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
| Write CID set.
|
|
void | SetDescription (const wxPdfFontDescription &desc) |
| Set the font description.
|
|
virtual const wxPdfFontDescription & | GetDescription () const |
| Get the font description.
|
|
virtual bool | LoadFontMetrics (wxXmlNode *root) |
| Load the font metrics XML file.
|
|
virtual void | CreateDefaultEncodingConv () |
| Create the associated default encoding converter.
|
|
virtual void | SetGlyphWidths (const wxPdfArrayUint16 &glyphWidths) |
| Set the glyph widths.
|
|
bool | GetFontDescription (const wxXmlNode *node, wxPdfFontDescription &fontDescription) |
| Get the font description from XML.
|
|
Class representing the Adobe core fonts. (For internal use only)