|
ADTF Display Toolbox
|
Default Font handling interface for basic font support. More...
Public Types | |
| enum | tStyle { STYLE_Default , STYLE_Antialiased , STYLE_Mono } |
| The enumeration marks the style of the font. More... | |
Public Member Functions | |
| virtual | ~IFont () |
| virtual destructor to ensure proper cleanup. | |
| virtual tResult | Release ()=0 |
| Releases the font. More... | |
| virtual tInt | GetHeight () const =0 |
| This function returns the height of the font in point. More... | |
| virtual tBool | MeasureText (const tChar *str, tInt &nWidth, tInt &nHeight) const =0 |
| The methods returns the measurement of the text in nWidth and nHeight. More... | |
Default Font handling interface for basic font support.
Definition at line 81 of file gfxlibinterfaces.h.
| enum tStyle |
The enumeration marks the style of the font.
| Enumerator | |
|---|---|
| STYLE_Default | default font. |
| STYLE_Antialiased | the font supports anti aliased. |
| STYLE_Mono | the font is mono style. |
Definition at line 85 of file gfxlibinterfaces.h.
|
pure virtual |
This function returns the height of the font in point.
|
pure virtual |
The methods returns the measurement of the text in nWidth and nHeight.
| str | [in] The String to measure (null terminated.) |
| nWidth | [in] Reference to a integer for width should be written to. |
| nHeight | [in] Reference to a integer for height should be written to. |
|
pure virtual |
Releases the font.