Defines the FontList class that manages all fonts used by the application. More...
#include <FontList.h>
Public Types | |
| enum | FontID { Red180 , White90 , Red64 , Blue64 , White64 , White32 } |
| Enumeration listing available fonts. More... | |
Public Member Functions | |
| GrFont * | get (FontID id) |
| Returns a pointer to the requested graphical font. | |
Static Public Member Functions | |
| static FontList * | getInstance (void) |
| Returns pointer to the single FontList object. | |
Defines the FontList class that manages all fonts used by the application.
Each instantiation of a graphical fonts, requires a fair amount of DRAM. To avoid creating fonts multiple times (unnecessarily using DRAM resources), this class was created to instantiate and provide access to the font data. Note that this is a Singleton class. Therefore, only one instance of this class can be created.
| enum FontList::FontID |
Returns a pointer to the requested graphical font.
| [in] | id | Identifier of the requested font |
|
static |