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.
Font Class Reference
#include <Font.h>
Public Member Functions | |
| Font (const char *table) | |
| Create a white Font object. | |
| Font (const char *table, unsigned int color) | |
| Create a Font object with the specified color. | |
| BitmapImage | glyph (char c) |
| Get the glyph Image for the specified character. | |
| unsigned int | color () |
| Get the current Font color. | |
| void | color (unsigned int c) |
| Set the Font color. | |
| int | height () |
| Get the height of the Font glyphs. | |
| int | measureString (const char *str) |
| Measures the width of a string in pixels if drawn with this font. | |
| int | measureWord (const char *str) |
| Measures the width of the next word in a string (separated by whitespace) in pixels if drawn with this font. | |
Detailed Description
Font class.
Used to access font data in an external table.
Definition at line 26 of file Font.h.
Constructor & Destructor Documentation
| Font | ( | const char * | table ) |
| Font | ( | const char * | table, |
| unsigned int | color | ||
| ) |
Member Function Documentation
| unsigned int color | ( | ) |
| void color | ( | unsigned int | c ) |
| BitmapImage glyph | ( | char | c ) |
| int height | ( | ) |
| int measureString | ( | const char * | str ) |
Generated on Tue Jul 12 2022 21:38:03 by
1.7.2