![]() |
wxPdfDocument 1.3.1
|
Base class for all fonts. (For internal use only) More...
#include <pdffontdata.h>
Public Member Functions | |
| 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 | SetFontBuffer (const char *fontBuffer) |
| Set associated font data buffer. | |
| const char * | GetFontBuffer () const |
| Get associated font data buffer. | |
| void | SetFontBufferSize (size_t fontBufferSize) |
| Set the size of the associated font data buffer. | |
| size_t | GetFontBufferSize () const |
| Get the size of the associated font data buffer. | |
| 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 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 can show all characters of a given string. | |
| virtual wxString | ConvertToValid (const wxString &s, wxUniChar replace=wxS('?')) const |
| Force string to valid string in respect of the current font encoding. | |
| virtual wxString | ConvertCID2GID (const wxString &s, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Convert character codes to glyph numbers. | |
| virtual wxString | ConvertGlyph (wxUint32 glyph, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Convert glyph number to string. | |
| virtual wxString | GetWidthsAsString (bool subset=false, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
| Get the character width array as 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 wxMBConv * | GetEncodingConv () const |
| Get the associated encoding converter. | |
| 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. | |
Static Public Member Functions | |
| static wxMBConv * | GetWinEncodingConv () |
| Get the default WinAnsi encoding converter. | |
| static wxString | GetNodeContent (const wxXmlNode *node) |
| Get the content of an XML node. | |
Protected Member Functions | |
| const wxPdfChar2GlyphMap * | FindEncodingMap (const wxPdfEncoding *encoding) const |
| Find the encoding map to be used for character to glyph conversion. | |
Static Protected Member Functions | |
| static int | FindStyleFromName (const wxString &name) |
| Determine font style from font name. | |
| static int | CompareGlyphListEntries (wxPdfGlyphListEntry *item1, wxPdfGlyphListEntry *item2) |
| Compare glyph list entries. | |
| static void | WriteStreamBuffer (wxOutputStream &stream, const char *buffer) |
| Write a buffer to a stream. | |
| static void | WriteToUnicode (wxPdfGlyphList &glyphs, wxMemoryOutputStream &toUnicode, bool simple=false) |
| Write a mapping from glyphs to unicode to a stream. | |
Protected Attributes | |
| wxString | m_type |
| Font type. | |
| wxString | m_family |
| Font family. | |
| wxString | m_alias |
| Font family alias. | |
| wxString | m_name |
| Font name. | |
| wxArrayString | m_fullNames |
| List of full font names. | |
| int | m_style |
| Font style flags. | |
| bool | m_initialized |
| Flag whether the font has been initialized. | |
| bool | m_embedRequired |
| Flag whether embedding of the font is allowed and supported. | |
| bool | m_embedSupported |
| Flag whether embedding of the font is allowed and supported. | |
| bool | m_subsetSupported |
| Flag whether subsetting of the font is allowed and supported. | |
| wxString | m_fontFileName |
| Qualified name of the font file. | |
| int | m_fontIndex |
| Index of the font in case of a font collection. | |
| wxFont | m_font |
| Associated wxFont object (currently used by wxMSW only) | |
| const char * | m_fontBuffer |
| Associated font data buffer. | |
| size_t | m_fontBufferSize |
| Size of the associated font data buffer. | |
| wxPdfGlyphWidthMap * | m_cw |
| Mapping of character ids to character widths. | |
| wxPdfChar2GlyphMap * | m_gn |
| Mapping of character ids to glyph numbers. | |
| wxPdfKernPairMap * | m_kp |
| Kerning pair map. | |
| wxPdfFontDescription | m_desc |
| Font description. | |
| wxString | m_enc |
| Encoding. | |
| wxString | m_diffs |
| Encoding differences. | |
| wxString | m_path |
| Path of font files. | |
| wxString | m_file |
| Filename of font program. | |
| wxString | m_ctg |
| Filename of char to glyph mapping. | |
| size_t | m_size1 |
| TrueType file size or Type1 file size 1. | |
| size_t | m_size2 |
| Type1 file size 2. | |
| bool | m_cff |
| Flag whether the font has a CFF table. | |
| size_t | m_cffOffset |
| Offset of the CFF table of a TrueType/OpenType font. | |
| size_t | m_cffLength |
| Lenght of the CFF table of a TrueType/OpenType font. | |
| wxString | m_cmap |
| CMap of a CID font. | |
| wxString | m_ordering |
| Ordering of a CID font. | |
| wxString | m_supplement |
| Supplement of a CID font. | |
| wxPdfEncoding * | m_encoding |
| Encoding. | |
| wxPdfEncodingChecker * | m_encodingChecker |
| Encoding checker. | |
Static Protected Attributes | |
| static wxMBConv * | ms_winEncoding |
| WinAnsi converter. | |
Friends | |
| class WXDLLIMPEXP_FWD_PDFDOC | wxPdfFont |
| class WXDLLIMPEXP_FWD_PDFDOC | wxPdfFontExtended |
| class WXDLLIMPEXP_FWD_PDFDOC | wxPdfFontListEntry |
| class | wxPdfFontManagerBase |
Base class for all fonts. (For internal use only)
| wxPdfFontData::wxPdfFontData | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
inlinevirtual |
Applay VOLT data.
| s | text string for which VOLT data should be applied |
Reimplemented in wxPdfFontDataTrueTypeUnicode.
|
virtual |
Check whether the font can show all characters of a given string.
| s | the string to be checked |
| encoding | the character to glyph mapping |
Reimplemented in wxPdfFontDataCore, wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
|
staticprotected |
Compare glyph list entries.
|
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 in wxPdfFontDataCore, wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
|
virtual |
Convert glyph number to string.
| glyph | the glyph to be converted |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented in wxPdfFontDataOpenTypeUnicode, and wxPdfFontDataTrueTypeUnicode.
|
virtual |
Force string to valid string in respect of the current font encoding.
The given string is converted in such a way that it contains only characters available in the current font encoding
| s | the string to be converted |
| replace | the character used to replace invalid characters |
|
virtual |
Create the associated default encoding converter.
Reimplemented in wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
|
inline |
Set embed support flag.
|
inline |
Check whether the font embedding is required.
|
protected |
Find the encoding map to be used for character to glyph conversion.
|
staticprotected |
Determine font style from font name.
| wxString wxPdfFontData::GetAlias | ( | ) | const |
Get font family alias.
| const wxPdfEncoding * wxPdfFontData::GetBaseEncoding | ( | ) | const |
Get encoding.
| int wxPdfFontData::GetBBoxTopPosition | ( | ) | const |
Get bounding box top position.
|
inline |
Get the length of the CFF section.
|
inline |
Get the offset of the CFF section within the font file.
| const wxPdfChar2GlyphMap * wxPdfFontData::GetChar2GlyphMap | ( | ) | const |
Get character to glyph number map.
| wxString wxPdfFontData::GetCMap | ( | ) | const |
Get the font's CMap (Type 0 only)
return the font's CMap descriptor
| wxString wxPdfFontData::GetCtgFile | ( | ) | const |
Get the name of the character to glyph mapping file created by MakeFont.
|
virtual |
Get the font description.
| wxString wxPdfFontData::GetDiffs | ( | ) | const |
Get encoding differences.
| wxString wxPdfFontData::GetEncoding | ( | ) | const |
Get encoding.
|
virtual |
Get the associated encoding converter.
Reimplemented in wxPdfFontDataCore, wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
| wxString wxPdfFontData::GetFamily | ( | ) | const |
Get font family name.
| wxString wxPdfFontData::GetFilePath | ( | ) | const |
Get path of font files.
|
inline |
Get associated font data buffer.
|
inline |
Get the size of the associated font data buffer.
| bool wxPdfFontData::GetFontDescription | ( | const wxXmlNode * | node, |
| wxPdfFontDescription & | fontDescription ) |
Get the font description from XML.
| node | root node of the XML font description | |
| [out] | fontDescription | the resulting font description |
| wxString wxPdfFontData::GetFontFile | ( | ) | const |
Get the name of the associated font file.
|
inline |
Get fully qualified font file name.
|
inline |
Get font index.
| wxArrayString wxPdfFontData::GetFullNames | ( | ) | const |
Get list of full font names.
|
virtual |
Get list of glyph names supported by this font.
| [out] | glyphNames | a list of glyph names |
Reimplemented in wxPdfFontDataType1.
| const wxPdfGlyphWidthMap * wxPdfFontData::GetGlyphWidthMap | ( | ) | const |
Get glyph width map.
| int wxPdfFontData::GetKerningWidth | ( | const wxString & | s | ) | const |
Get width of string taking kerning into account.
| s | the string which's width is to be calculated |
| wxArrayInt wxPdfFontData::GetKerningWidthArray | ( | const wxString & | s | ) | const |
Get kerning width array.
| s | the string for which kerning information should be provided |
| const wxPdfKernPairMap * wxPdfFontData::GetKernPairMap | ( | ) | const |
Get kerning pair map.
| wxString wxPdfFontData::GetName | ( | ) | const |
Get font name.
|
static |
Get the content of an XML node.
| node | the XML node containing content |
| wxString wxPdfFontData::GetOrdering | ( | ) | const |
Get font ordering.
| size_t wxPdfFontData::GetSize1 | ( | ) | const |
Get font file size 1.
| size_t wxPdfFontData::GetSize2 | ( | ) | const |
Get font file size 2 (Type 1 only)
|
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 |
| charSpacing | extra amount of spacing between characters (optional) |
Reimplemented in wxPdfFontDataCore, wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
| int wxPdfFontData::GetStyle | ( | ) | const |
| wxString wxPdfFontData::GetSupplement | ( | ) | const |
Get font supplement (Type 0 only)
| wxString wxPdfFontData::GetType | ( | ) | const |
| int wxPdfFontData::GetUnderlinePosition | ( | ) | const |
Get underline position.
| int wxPdfFontData::GetUnderlineThickness | ( | ) | const |
Get underline thickness.
|
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 in wxPdfFontDataCore, wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
|
static |
Get the default WinAnsi encoding converter.
|
inline |
Check whether the font is in compact font format.
| bool wxPdfFontData::HasDiffs | ( | ) | const |
Check whether the font has differences to WinAnsi encoding.
| bool wxPdfFontData::HasFile | ( | ) | const |
Check whether the font has an associated font file.
| bool wxPdfFontData::HasSize2 | ( | ) | const |
Check whether the file has a size 2.
|
inlinevirtual |
Check whether VOLT data are available.
Reimplemented in wxPdfFontDataTrueTypeUnicode.
|
virtual |
Initialize font data.
Reimplemented in wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueTypeUnicode, and wxPdfFontDataType1.
|
inline |
Check initialization state.
|
virtual |
Load the font metrics XML file.
| root | the root node of the XML font metric file |
Reimplemented in wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, wxPdfFontDataType0, and wxPdfFontDataType1.
| void wxPdfFontData::SetAlias | ( | const wxString & | alias | ) |
Set font family alias.
| alias | the alias name of the font family |
| void wxPdfFontData::SetChar2GlyphMap | ( | wxPdfChar2GlyphMap * | gn | ) |
Set character to glyph number map.
| gn | the character to glyph number map |
| void wxPdfFontData::SetCMap | ( | const wxString & | cmap | ) |
Set font CMap.
| cmap | the CMap descriptor |
| void wxPdfFontData::SetCtgFile | ( | const wxString & | ctg | ) |
Set the name of the character to glyph mapping file created by MakeFont.
| ctg | the name of the character to glyph mapping file created by the MakeFont utility |
| void wxPdfFontData::SetDescription | ( | const wxPdfFontDescription & | desc | ) |
Set the font description.
| desc | the font description |
| void wxPdfFontData::SetDiffs | ( | const wxString & | diffs | ) |
Set encoding differences.
| diffs | the string describing the differences to the WinAnsi encoding |
|
inline |
Set embed support flag.
| embedSupported | flag whether the font supports embedding |
| void wxPdfFontData::SetEncoding | ( | const wxString & | encoding | ) |
Set encoding.
| encoding | the name of the font encoding |
| void wxPdfFontData::SetFamily | ( | const wxString & | name | ) |
Set font family name.
| name | the name of the font family |
| void wxPdfFontData::SetFilePath | ( | const wxString & | path | ) |
Set path of font files.
| path | the path where the font file is located |
|
inline |
Set associated font data buffer.
| fontBuffer | the wxFont to be associated with the font |
|
inline |
Set the size of the associated font data buffer.
| fontBufferSize | the size of the associated font data buffer |
| void wxPdfFontData::SetFontFile | ( | const wxString & | file | ) |
Set the name of the font file created by MakeFont.
| file | the name of the font file created by the MakeFont utility |
|
inline |
Set fully qualified font file name.
| fontFileName | the fully qualified name of the font file |
|
inline |
Set font index in case the font is member of a font collection.
| fontIndex | the index of the font if it is a member of a font collection |
| void wxPdfFontData::SetFullNames | ( | const wxArrayString & | fullNames | ) |
Set list of full font names.
| fullNames | a list of full font names |
| void wxPdfFontData::SetGlyphWidthMap | ( | wxPdfGlyphWidthMap * | cw | ) |
Set glyph width map.
| cw | the glyph width map |
|
virtual |
Set the glyph widths.
| glyphWidths | array with glyph widths |
Reimplemented in wxPdfFontDataOpenTypeUnicode, and wxPdfFontDataTrueTypeUnicode.
| void wxPdfFontData::SetInitialized | ( | bool | initialized | ) |
Set initialization state.
| initialized | state of initialization to set |
| void wxPdfFontData::SetKernPairMap | ( | wxPdfKernPairMap * | kp | ) |
Set kerning pair map.
| kp | the kerning pair map |
| void wxPdfFontData::SetName | ( | const wxString & | name | ) |
Set font name.
| name | the full name of the font, usually the PostScript name |
| void wxPdfFontData::SetOrdering | ( | const wxString & | ordering | ) |
Set font ordering.
| ordering | the font's ordering descriptor |
| void wxPdfFontData::SetSize1 | ( | size_t | size1 | ) |
Get font file size 1.
| size1 | the size of the font file |
| void wxPdfFontData::SetSize2 | ( | size_t | size2 | ) |
Set font file size 2.
| size2 | the second size of the font file |
| void wxPdfFontData::SetStyle | ( | const wxString & | style | ) |
Set font style.
| style | the style of the font. If the style string
|
| void wxPdfFontData::SetStyle | ( | int | style | ) |
Set font style.
| style | the style of the font. Vaild values are
|
| void wxPdfFontData::SetStyleFromName | ( | ) |
Set font style based on font name.
The font's full name is searched for substrings "regular", "bold", "black", "italic" and "oblique". Depending on the findings the style is set.
| void wxPdfFontData::SetSubset | ( | bool | subset | ) |
Set subset flag if font subsetting is supported.
| subset | flag whether subsetting should be used |
|
inline |
Set subset support flag.
| subsetSupported | flag whether the font supports subsetting |
| void wxPdfFontData::SetSupplement | ( | const wxString & | supplement | ) |
Set font supplement.
| supplement | the font's supplement descriptor |
| void wxPdfFontData::SetType | ( | const wxString & | type | ) |
Set font type.
| type | type of the font |
| void wxPdfFontData::SetUnderlinePosition | ( | int | up | ) |
Set underline position.
| up | the position of the underline decoration |
| void wxPdfFontData::SetUnderlineThickness | ( | int | ut | ) |
Set underline thickness.
| ut | the thickness of the underline decoration |
|
inline |
Check whether the font subsetting is supported.
|
virtual |
Write CID set.
| setData | the output stream |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented in wxPdfFontDataOpenTypeUnicode, and wxPdfFontDataTrueTypeUnicode.
|
virtual |
Write CID to GID mapping.
| mapData | the output stream |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented in wxPdfFontDataTrueTypeUnicode.
|
virtual |
Write font data.
| fontData | the output stream |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented in wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueType, wxPdfFontDataTrueTypeUnicode, and wxPdfFontDataType1.
|
staticprotected |
Write a buffer to a stream.
|
staticprotected |
Write a mapping from glyphs to unicode to a stream.
|
virtual |
Write character/glyph to unicode mapping.
| mapData | the output stream |
| encoding | the character to glyph mapping |
| usedGlyphs | the list of used glyphs |
| subsetGlyphs | the mapping of glyphs to subset glyphs |
Reimplemented in wxPdfFontDataOpenTypeUnicode, wxPdfFontDataTrueTypeUnicode, and wxPdfFontDataType1.
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Font family alias.
|
protected |
Flag whether the font has a CFF table.
|
protected |
Lenght of the CFF table of a TrueType/OpenType font.
|
protected |
Offset of the CFF table of a TrueType/OpenType font.
|
protected |
CMap of a CID font.
|
protected |
Filename of char to glyph mapping.
|
protected |
Mapping of character ids to character widths.
|
protected |
Font description.
|
protected |
Encoding differences.
|
protected |
Flag whether embedding of the font is allowed and supported.
|
protected |
Flag whether embedding of the font is allowed and supported.
|
protected |
Encoding.
|
protected |
Encoding.
|
protected |
Encoding checker.
|
protected |
Font family.
|
protected |
Filename of font program.
|
protected |
Associated wxFont object (currently used by wxMSW only)
|
protected |
Associated font data buffer.
|
protected |
Size of the associated font data buffer.
|
protected |
Qualified name of the font file.
|
protected |
Index of the font in case of a font collection.
|
protected |
List of full font names.
|
protected |
Mapping of character ids to glyph numbers.
|
protected |
Flag whether the font has been initialized.
|
protected |
Kerning pair map.
|
protected |
Font name.
|
protected |
Ordering of a CID font.
|
protected |
Path of font files.
|
protected |
TrueType file size or Type1 file size 1.
|
protected |
Type1 file size 2.
|
protected |
Font style flags.
|
protected |
Flag whether subsetting of the font is allowed and supported.
|
protected |
Supplement of a CID font.
|
protected |
Font type.
|
staticprotected |
WinAnsi converter.