#include <Monofonto-Regular-20.h>
|
| | Monofonto_Regular_20 (void) |
| | Constructs a new font object.
|
| |
| bool | charDef (char cc, CharDef_t &results) const |
| | Defines the properties of each character.
|
| |
| int8_t | kerning (uint16_t ID) const |
| | Returns the amount of kerning that should be used between two characters.
|
| |
| | GrFont (ROM_Image imgLoc, uint16_t lineHeight, uint16_t base) |
| | Constructs a new GrFont object.
|
| |
| void | begin (uint16_t color16Bit) |
| | Initializes the font and sets the font's foreground color.
|
| |
| void | begin (uint8_t red, uint8_t green, uint8_t blue) |
| | Initializes the font and sets the font's foreground color.
|
| |
| int8_t | kerning (uint8_t first, uint8_t second) const |
| | Returns the amount of kerning that should be used between two characters.
|
| |
| uint8_t | placeText (Canvas &canvas, char cc, uint16_t x, uint16_t y) const |
| | Places a character onto the canvas.
|
| |
| uint8_t | placeText (Canvas &canvas, const char *const text, uint16_t buffSize, uint16_t x, uint16_t y) const |
| | Places a string onto the canvas.
|
| |
| uint16_t | textWidth (const char cc) const |
| | Determines the width of character, cc, in screen pixels.
|
| |
| uint16_t | textWidth (const char *const text, uint16_t buffSize) const |
| | Determines the width of string in screen pixels.
|
| |
|
| const uint8_t | charDefNdxOffset = 32 |
| | Offset to the first character in the index.
|
| |
| const ROM_Image | imgLoc |
| | Location of the font in Flash ROM.
|
| |
| const uint16_t | LINE_HEIGHT |
| | Recommended vertical spacing between lines of text.
|
| |
| const uint16_t | BASE |
| | Distance between the top of the pixel and its base.
|
| |
|
| static const int8_t charDefNdx[] | PROGMEM |
| | Index mapping characters to entries in the charDefData table.
|
| |
| static const int16_t charDefData[69][7] | PROGMEM |
| | Table defining the characteristics of each character.
|
| |
◆ Monofonto_Regular_20()
| Monofonto_Regular_20::Monofonto_Regular_20 |
( |
void | | ) |
|
|
inline |
Constructs a new font object.
◆ charDef()
| bool Monofonto_Regular_20::charDef |
( |
char | cc, |
|
|
CharDef_t & | results ) const |
|
inlinevirtual |
Defines the properties of each character.
- Parameters
-
| [in] | cc | Character to look up |
| [out] | results | CharDef_t structure containing information on character, cc |
- Returns
- Returns true if
cc was found. Returns false if not
Implements GrFont.
◆ kerning()
| int8_t Monofonto_Regular_20::kerning |
( |
uint16_t | ID | ) |
const |
|
inlinevirtual |
Returns the amount of kerning that should be used between two characters.
- Parameters
-
| [in] | ID | Identifier formed by combining two characters |
- Returns
- Amount of kerning in screen pixels
Implements GrFont.
◆ charDefNdxOffset
| const uint8_t Monofonto_Regular_20::charDefNdxOffset = 32 |
Offset to the first character in the index.
◆ PROGMEM [1/2]
| const int8_t charDefNdx [] Monofonto_Regular_20::PROGMEM |
|
static |
Index mapping characters to entries in the charDefData table.
◆ PROGMEM [2/2]
| const int16_t charDefData [69][7] Monofonto_Regular_20::PROGMEM |
|
static |
Table defining the characteristics of each character.
The documentation for this struct was generated from the following file:
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Display/fonts/Monofonto-Regular-20.h