ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
IFontabstract

Default Font handling interface for basic font support. More...

Inheritance diagram for IFont:
[legend]

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...
 

Detailed Description

Default Font handling interface for basic font support.

Definition at line 81 of file gfxlibinterfaces.h.

Member Enumeration Documentation

◆ tStyle

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.

Member Function Documentation

◆ GetHeight()

virtual tInt GetHeight ( ) const
pure virtual

This function returns the height of the font in point.

Returns
The height in point.

◆ MeasureText()

virtual tBool MeasureText ( const tChar *  str,
tInt &  nWidth,
tInt &  nHeight 
) const
pure virtual

The methods returns the measurement of the text in nWidth and nHeight.

Parameters
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.
Returns
true when succeeded.

◆ Release()

virtual tResult Release ( )
pure virtual

Releases the font.

Returns
The standard result code.