Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RadarDemo 3DDemo RadarDemoT
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.
Generated on Thu Jul 14 2022 02:25:58 by
