Class representing a font providing a basic interface. More...
#include <pdffont.h>
Public Member Functions | |
wxPdfFont () | |
Default constructor. | |
virtual | ~wxPdfFont () |
Default destructor. | |
wxPdfFont (const wxPdfFont &font) | |
Copy constructor. | |
wxPdfFont & | operator= (const wxPdfFont &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. | |
wxString | GetEncoding () const |
Get encoding. | |
virtual double | GetStringWidth (const wxString &s) const |
Get the width of a string. | |
bool | EmbedRequired () const |
Check whether the font embedding is required. | |
bool | EmbedSupported () const |
Check whether the font embedding is supported. | |
bool | SubsetSupported () const |
Check whether the font subsetting is supported. | |
const wxPdfFontDescription | GetDescription () const |
Get the font description. | |
void | SetEmbed (bool embed) |
Set embed flag. | |
bool | GetEmbed () const |
Get embed flag. | |
void | SetSubset (bool subset) |
Set subset flag. | |
bool | GetSubset () const |
Get subset flag. | |
bool | SetEncoding (const wxPdfEncoding &encoding) |
Set encoding. | |
bool | GetEncoding (wxPdfEncoding &encoding) |
Get encoding. | |
bool | GetGlyphNames (wxArrayString &glyphNames) const |
Get list of supported glyph names. | |
Friends | |
class | wxPdfFontExtended |
class | wxPdfFontManagerBase |
Class representing a font providing a basic interface.
wxPdfFont::wxPdfFont | ( | ) |
Default constructor.
virtual wxPdfFont::~wxPdfFont | ( | ) | [virtual] |
Default destructor.
wxPdfFont::wxPdfFont | ( | const wxPdfFont & | font | ) |
Copy constructor.
bool wxPdfFont::EmbedRequired | ( | ) | const |
Check whether the font embedding is required.
bool wxPdfFont::EmbedSupported | ( | ) | const |
Check whether the font embedding is supported.
const wxPdfFontDescription wxPdfFont::GetDescription | ( | ) | const |
Get the font description.
bool wxPdfFont::GetEmbed | ( | ) | const [inline] |
Get embed flag.
bool wxPdfFont::GetEncoding | ( | wxPdfEncoding & | encoding | ) |
Get encoding.
For Type1 and non-Unicode TrueType fonts it is possible to overwrite the default encoding of the font. It's the user's responsibility to ensure the font supports all characters assigned by the encoding.
[out] | encoding | the encoding used with this font |
wxString wxPdfFont::GetEncoding | ( | ) | const |
Get encoding.
wxString wxPdfFont::GetFamily | ( | ) | const |
Get font family.
bool wxPdfFont::GetGlyphNames | ( | wxArrayString & | glyphNames | ) | const |
Get list of supported glyph names.
For dynamically loaded Type1 fonts the list of supported glyph names is provided. For all other font types this information is not available.
wxString wxPdfFont::GetName | ( | ) | const |
Get font name.
virtual double wxPdfFont::GetStringWidth | ( | const wxString & | s | ) | const [virtual] |
Get the width of a string.
s | string which's width is to be returned |
int wxPdfFont::GetStyle | ( | ) | const |
Get font style.
bool wxPdfFont::GetSubset | ( | ) | const [inline] |
Get subset flag.
wxString wxPdfFont::GetType | ( | ) | const |
Get font type.
bool wxPdfFont::IsValid | ( | ) | const |
Check whether font is valid.
void wxPdfFont::SetEmbed | ( | bool | embed | ) |
Set embed flag.
Enables or disables embedding for the font. Embedding can be enabled if and only if the font allows embedding. Embedding can be disabled if and only if the font does not requires embedding.
embed | Indicates whether to embed or not embed the font |
bool wxPdfFont::SetEncoding | ( | const wxPdfEncoding & | encoding | ) |
Set encoding.
For Type1 and non-Unicode TrueType fonts it is possible to overwrite the default encoding of the font. It's the user's responsibility to ensure the font supports all characters assigned by the encoding.
encoding | the encoding to use with this font |
void wxPdfFont::SetSubset | ( | bool | subset | ) |
Set subset flag.
Enables or disables subsetting for the font. Subsetting can be enabled if and only if the font allows subsetting.
subset | indicates whether to subset or not subset the font |
bool wxPdfFont::SubsetSupported | ( | ) | const |
Check whether the font subsetting is supported.
friend class wxPdfFontExtended [friend] |
friend class wxPdfFontManagerBase [friend] |