wxPdfDocument
0.9.7
|
Class representing a font description. More...
#include <pdffontdescription.h>
Public Member Functions | |
wxPdfFontDescription () | |
Default constructor. More... | |
wxPdfFontDescription (int ascent, int descent, int capHeight, int flags, const wxString &fontBBox, int italicAngle, int stemV, int missingWidth, int xHeight, int underlinePosition, int underlineThickness, int hheaAscender=0, int hheaDescender=0, int hheaLineGap=0, int os2sTypoAscender=0, int os2sTypoDescender=0, int os2sTypoLineGap=0, int os2usWinAscent=0, int os2usWinDescent=0) | |
Constructor. More... | |
wxPdfFontDescription (const wxPdfFontDescription &desc) | |
Copy constructor. More... | |
~wxPdfFontDescription () | |
Default destructor. More... | |
void | SetAscent (int ascent) |
Set ascender. More... | |
int | GetAscent () const |
Get ascender. More... | |
void | SetDescent (int descent) |
Set descender. More... | |
int | GetDescent () const |
Get descender. More... | |
void | SetCapHeight (int capHeight) |
Set CapHeight. More... | |
int | GetCapHeight () const |
Get CapHeight. More... | |
void | SetFlags (int flags) |
Set font flags. More... | |
int | GetFlags () const |
Get font flags. More... | |
void | SetFontBBox (const wxString &fontBBox) |
Set font bounding box. More... | |
wxString | GetFontBBox () const |
Get font bounding box. More... | |
void | SetItalicAngle (int italicAngle) |
Set italic angle. More... | |
int | GetItalicAngle () const |
Get italic angle. More... | |
void | SetStemV (int stemV) |
Set StemV. More... | |
int | GetStemV () const |
Get StemV. More... | |
void | SetMissingWidth (int missingWidth) |
Set missing character width. More... | |
int | GetMissingWidth () const |
Get missing character width. More... | |
void | SetXHeight (int xHeight) |
Set xHeight. More... | |
int | GetXHeight () const |
Get xHeight. More... | |
void | SetUnderlinePosition (int underlinePosition) |
Set underline position. More... | |
int | GetUnderlinePosition () const |
Get underline position. More... | |
void | SetUnderlineThickness (int underlineThickness) |
Set underline thickness. More... | |
int | GetUnderlineThickness () const |
Get underline thickness. More... | |
void | SetOpenTypeMetrics (int hheaAscender, int hheaDescender, int hheaLineGap, int os2sTypoAscender, int os2sTypoDescender, int os2sTypoLineGap, int os2usWinAscent, int os2usWinDescent) |
Set OpenType Font Metrics. More... | |
void | GetOpenTypeMetrics (int *hheaAscender, int *hheaDescender, int *hheaLineGap, int *os2sTypoAscender, int *os2sTypoDescender, int *os2sTypoLineGap, int *os2usWinAscent, int *os2usWinDescent) |
Get OpenType Font Metrics. More... | |
Class representing a font description.
wxPdfFontDescription::wxPdfFontDescription | ( | ) |
Default constructor.
wxPdfFontDescription::wxPdfFontDescription | ( | int | ascent, |
int | descent, | ||
int | capHeight, | ||
int | flags, | ||
const wxString & | fontBBox, | ||
int | italicAngle, | ||
int | stemV, | ||
int | missingWidth, | ||
int | xHeight, | ||
int | underlinePosition, | ||
int | underlineThickness, | ||
int | hheaAscender = 0 , |
||
int | hheaDescender = 0 , |
||
int | hheaLineGap = 0 , |
||
int | os2sTypoAscender = 0 , |
||
int | os2sTypoDescender = 0 , |
||
int | os2sTypoLineGap = 0 , |
||
int | os2usWinAscent = 0 , |
||
int | os2usWinDescent = 0 |
||
) |
Constructor.
ascent | ascender |
descent | descender |
capHeight | height of capital characters |
flags | font flags |
fontBBox | bounding box of the font |
italicAngle | italic angle |
stemV | stemV value |
missingWidth | width of missing characters |
xHeight | height of character X |
underlinePosition | position of underline decoration |
underlineThickness | thickness of underline decoration |
hheaAscender | ascender in OpenType table hhea |
hheaDescender | descender in OpenType table hhea |
hheaLineGap | line gap in OpenType table hhea |
os2sTypoAscender | typographic ascender in OpenType table OS/2 |
os2sTypoDescender | typographic descender in OpenType table OS/2 |
os2sTypoLineGap | typographic line gap in OpenType table OS/2 |
os2usWinAscent | Windows ascender in OpenType table OS/2 |
os2usWinDescent | Windows descender in OpenType table OS/2 |
wxPdfFontDescription::wxPdfFontDescription | ( | const wxPdfFontDescription & | desc | ) |
Copy constructor.
wxPdfFontDescription::~wxPdfFontDescription | ( | ) |
Default destructor.
|
inline |
Get ascender.
|
inline |
Get CapHeight.
|
inline |
Get descender.
|
inline |
Get font flags.
|
inline |
Get font bounding box.
|
inline |
Get italic angle.
|
inline |
Get missing character width.
void wxPdfFontDescription::GetOpenTypeMetrics | ( | int * | hheaAscender, |
int * | hheaDescender, | ||
int * | hheaLineGap, | ||
int * | os2sTypoAscender, | ||
int * | os2sTypoDescender, | ||
int * | os2sTypoLineGap, | ||
int * | os2usWinAscent, | ||
int * | os2usWinDescent | ||
) |
Get OpenType Font Metrics.
Get stored font metrics from the OpneType tables hhea and OS/2
|
inline |
Get StemV.
|
inline |
Get underline position.
|
inline |
Get underline thickness.
|
inline |
Get xHeight.
|
inline |
Set ascender.
ascent | ascender |
|
inline |
Set CapHeight.
capHeight | the height of capital characters |
|
inline |
Set descender.
descent | descender |
|
inline |
Set font flags.
flags | the font flags |
|
inline |
Set font bounding box.
fontBBox | the bounding box of the font in string representation |
|
inline |
Set italic angle.
italicAngle | the italic angle |
|
inline |
Set missing character width.
missingWidth | the width of missing characters |
void wxPdfFontDescription::SetOpenTypeMetrics | ( | int | hheaAscender, |
int | hheaDescender, | ||
int | hheaLineGap, | ||
int | os2sTypoAscender, | ||
int | os2sTypoDescender, | ||
int | os2sTypoLineGap, | ||
int | os2usWinAscent, | ||
int | os2usWinDescent | ||
) |
Set OpenType Font Metrics.
Set font metrics from the OpenType tables hhea and OS/2
|
inline |
Set StemV.
stemV | the StemV value |
|
inline |
Set underline position.
underlinePosition | the position of the underline decoration |
|
inline |
Set underline thickness.
underlineThickness | the thickness of the underline decoration |
|
inline |
Set xHeight.
xHeight | the height of the character X |