wxPdfDocument 1.2.0
|
Class representing a font providing an extended interface. More...
#include <pdffontextended.h>
Public Member Functions | |
wxPdfFontExtended () | |
Default constructor. | |
wxPdfFontExtended (const wxPdfFont &font) | |
Constructor. | |
virtual | ~wxPdfFontExtended () |
Default destructor. | |
wxPdfFontExtended (const wxPdfFontExtended &font) | |
Copy constructor. | |
wxPdfFontExtended & | operator= (const wxPdfFontExtended &font) |
Assignment. | |
bool | IsValid () const |
Check whether font is valid. | |
wxString | GetType () const |
Get font type. | |
wxString | GetFamily () const |
Get font family. | |
wxString | GetName () const |
Get font name. | |
int | GetStyle () const |
Get font style. | |
bool | EmbedRequested () const |
Check whether font embedding is requested for this font. | |
bool | SubsetRequested () const |
Check whether font subsetting is requested for this font. | |
int | GetUnderlinePosition () const |
Get underline position. | |
int | GetUnderlineThickness () const |
Get underline thickness. | |
int | GetBBoxTopPosition () const |
Get bounding box top position. | |
wxString | GetEncoding () const |
Get encoding. | |
wxString | GetBaseEncoding () const |
Get encoding. | |
bool | HasDiffs () const |
Check whether the font has differences to WinAnsi encoding. | |
wxString | GetDiffs () const |
Get encoding differences. | |
size_t | GetSize1 () const |
Get font file size 1. | |
bool | HasSize2 () const |
Check whether the file has a size 2. | |
size_t | GetSize2 () const |
Get font file size 2 (Type 1 only) | |
wxString | GetCMap () const |
Get the font's CMap (Type 0 only) | |
wxString | GetOrdering () const |
Get font ordering. | |
wxString | GetSupplement () const |
Get font supplement /Type 0 only) | |
wxString | GetWidthsAsString (bool subset=false, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const |
Get the character width array as string. | |
double | GetStringWidth (const wxString &s, bool withKerning=false, double charSpacing=0) |
Get the width of a string. | |
wxArrayInt | GetKerningWidthArray (const wxString &s) const |
Get kerning width array. | |
bool | CanShow (const wxString &s) const |
Check whether the font oan show all characters of a given string. | |
wxString | ConvertCID2GID (const wxString &s, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
Convert character codes to glyph numbers. | |
wxString | ConvertGlyph (wxUint32 glyph, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) |
Convert glyph number to string. | |
bool | IsEmbedded () const |
Check whether the font will be embedded. | |
bool | SupportsSubset () const |
Check whether the font supports subsetting. | |
size_t | WriteFontData (wxOutputStream *fontData, wxPdfSortedArrayInt *usedGlyphs, wxPdfChar2GlyphMap *subsetGlyphs) |
Write font data. | |
size_t | WriteUnicodeMap (wxOutputStream *mapData, wxPdfSortedArrayInt *usedGlyphs, wxPdfChar2GlyphMap *subsetGlyphs) |
Write character/glyph to unicode mapping. | |
size_t | WriteCIDToGIDMap (wxOutputStream *mapData, wxPdfSortedArrayInt *usedGlyphs, wxPdfChar2GlyphMap *subsetGlyphs) |
Write CID to GID mapping. | |
size_t | WriteCIDSet (wxOutputStream *setData, wxPdfSortedArrayInt *usedGlyphs, wxPdfChar2GlyphMap *subsetGlyphs) |
Write CID set. | |
const wxPdfFontDescription & | GetDescription () const |
Get the font description. | |
wxPdfFont | GetUserFont () const |
Get user font. | |
bool | HasEncodingMap () const |
Check whether the font has an encoding map. | |
virtual wxMBConv * | GetEncodingConv () const |
Get the associated encoding converter. | |
bool | HasVoltData () const |
wxString | ApplyVoltData (const wxString &txt) const |
Friends | |
class | wxPdfFontManagerBase |
Class representing a font providing an extended interface.
wxPdfFontExtended::wxPdfFontExtended | ( | ) |
Default constructor.
wxPdfFontExtended::wxPdfFontExtended | ( | const wxPdfFont & | font | ) |
Constructor.
font | the user font |
|
virtual |
Default destructor.
wxPdfFontExtended::wxPdfFontExtended | ( | const wxPdfFontExtended & | font | ) |
Copy constructor.
wxString wxPdfFontExtended::ApplyVoltData | ( | const wxString & | txt | ) | const |
bool wxPdfFontExtended::CanShow | ( | const wxString & | s | ) | const |
Check whether the font oan show all characters of a given string.
s | the string to be checked |
wxString wxPdfFontExtended::ConvertCID2GID | ( | const wxString & | s, |
wxPdfSortedArrayInt * | usedGlyphs = NULL, | ||
wxPdfChar2GlyphMap * | subsetGlyphs = NULL ) |
Convert character codes to glyph numbers.
s | the string to be converted |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
wxString wxPdfFontExtended::ConvertGlyph | ( | wxUint32 | glyph, |
wxPdfSortedArrayInt * | usedGlyphs = NULL, | ||
wxPdfChar2GlyphMap * | subsetGlyphs = NULL ) |
Convert glyph number to string.
glyph | the glyph to be converted |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
|
inline |
Check whether font embedding is requested for this font.
wxString wxPdfFontExtended::GetBaseEncoding | ( | ) | const |
Get encoding.
int wxPdfFontExtended::GetBBoxTopPosition | ( | ) | const |
Get bounding box top position.
wxString wxPdfFontExtended::GetCMap | ( | ) | const |
Get the font's CMap (Type 0 only)
return the font's CMap descriptor
const wxPdfFontDescription & wxPdfFontExtended::GetDescription | ( | ) | const |
Get the font description.
wxString wxPdfFontExtended::GetDiffs | ( | ) | const |
Get encoding differences.
wxString wxPdfFontExtended::GetEncoding | ( | ) | const |
Get encoding.
|
virtual |
Get the associated encoding converter.
wxString wxPdfFontExtended::GetFamily | ( | ) | const |
Get font family.
wxArrayInt wxPdfFontExtended::GetKerningWidthArray | ( | const wxString & | s | ) | const |
Get kerning width array.
s | the string for which kerning information should be provided |
wxString wxPdfFontExtended::GetName | ( | ) | const |
Get font name.
wxString wxPdfFontExtended::GetOrdering | ( | ) | const |
Get font ordering.
size_t wxPdfFontExtended::GetSize1 | ( | ) | const |
Get font file size 1.
size_t wxPdfFontExtended::GetSize2 | ( | ) | const |
Get font file size 2 (Type 1 only)
double wxPdfFontExtended::GetStringWidth | ( | const wxString & | s, |
bool | withKerning = false, | ||
double | charSpacing = 0 ) |
Get the width of a string.
s | the string for which the width should be calculated |
withKerning | flag indicating whether kerning should be taken into account |
charSpacing | extra amount of spacing between characters (optional) |
int wxPdfFontExtended::GetStyle | ( | ) | const |
Get font style.
wxString wxPdfFontExtended::GetSupplement | ( | ) | const |
Get font supplement /Type 0 only)
wxString wxPdfFontExtended::GetType | ( | ) | const |
Get font type.
int wxPdfFontExtended::GetUnderlinePosition | ( | ) | const |
Get underline position.
int wxPdfFontExtended::GetUnderlineThickness | ( | ) | const |
Get underline thickness.
wxPdfFont wxPdfFontExtended::GetUserFont | ( | ) | const |
Get user font.
wxString wxPdfFontExtended::GetWidthsAsString | ( | bool | subset = false, |
wxPdfSortedArrayInt * | usedGlyphs = NULL, | ||
wxPdfChar2GlyphMap * | subsetGlyphs = NULL ) const |
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 |
bool wxPdfFontExtended::HasDiffs | ( | ) | const |
Check whether the font has differences to WinAnsi encoding.
bool wxPdfFontExtended::HasEncodingMap | ( | ) | const |
Check whether the font has an encoding map.
bool wxPdfFontExtended::HasSize2 | ( | ) | const |
Check whether the file has a size 2.
bool wxPdfFontExtended::HasVoltData | ( | ) | const |
bool wxPdfFontExtended::IsEmbedded | ( | ) | const |
Check whether the font will be embedded.
bool wxPdfFontExtended::IsValid | ( | ) | const |
Check whether font is valid.
wxPdfFontExtended & wxPdfFontExtended::operator= | ( | const wxPdfFontExtended & | font | ) |
Assignment.
|
inline |
Check whether font subsetting is requested for this font.
bool wxPdfFontExtended::SupportsSubset | ( | ) | const |
Check whether the font supports subsetting.
size_t wxPdfFontExtended::WriteCIDSet | ( | wxOutputStream * | setData, |
wxPdfSortedArrayInt * | usedGlyphs, | ||
wxPdfChar2GlyphMap * | subsetGlyphs ) |
Write CID set.
setData | the output stream |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
size_t wxPdfFontExtended::WriteCIDToGIDMap | ( | wxOutputStream * | mapData, |
wxPdfSortedArrayInt * | usedGlyphs, | ||
wxPdfChar2GlyphMap * | subsetGlyphs ) |
Write CID to GID mapping.
mapData | the output stream |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
size_t wxPdfFontExtended::WriteFontData | ( | wxOutputStream * | fontData, |
wxPdfSortedArrayInt * | usedGlyphs, | ||
wxPdfChar2GlyphMap * | subsetGlyphs ) |
Write font data.
fontData | the output stream |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
size_t wxPdfFontExtended::WriteUnicodeMap | ( | wxOutputStream * | mapData, |
wxPdfSortedArrayInt * | usedGlyphs, | ||
wxPdfChar2GlyphMap * | subsetGlyphs ) |
Write character/glyph to unicode mapping.
mapData | the output stream |
usedGlyphs | the list of used glyphs |
subsetGlyphs | the mapping of glyphs to subset glyphs |
|
friend |