Miroslaw K. / Graphics

Dependents:   RadarDemo 3DDemo RadarDemoT

Embed: (wiki syntax)

« Back to documentation index

GrFont Class Reference

GrFont Class Reference

System font definition class to keep system fonts sFONT isolated. More...

#include <GrFont.h>

Public Member Functions

 GrFont ()
 Constructor sets system font of size 12 as a default font.
 GrFont (GrFontType fontType)
 Constructor sets font of type defined by GrFontType (enum EGrFont).
sFONT * GetSystemFont ()
 Get a reference to original system font.
void SetFontType (GrFontType fontType)
 Change selected font.
uint16_t Width ()
 Get selected font width in pixels.
uint16_t Height ()
 Get selected font height in pixels.

Detailed Description

System font definition class to keep system fonts sFONT isolated.

Class will be usefull to handle custom defined fonts.

Definition at line 42 of file GrFont.h.


Constructor & Destructor Documentation

GrFont (  )

Constructor sets system font of size 12 as a default font.

Definition at line 13 of file GrFont.cpp.

GrFont ( GrFontType  fontType )

Constructor sets font of type defined by GrFontType (enum EGrFont).

Definition at line 19 of file GrFont.cpp.


Member Function Documentation

sFONT * GetSystemFont (  )

Get a reference to original system font.

Definition at line 44 of file GrFont.cpp.

uint16_t Height (  )

Get selected font height in pixels.

Definition at line 30 of file GrFont.cpp.

void SetFontType ( GrFontType  fontType )

Change selected font.

Definition at line 36 of file GrFont.cpp.

uint16_t Width (  )

Get selected font width in pixels.

Definition at line 25 of file GrFont.cpp.