Solo Controller Documentation 1.0
Documentation for the Solo Controller
 
Loading...
Searching...
No Matches
Monofonto_Regular_180 Struct Reference

#include <Monofonto-Regular-180.h>

Inheritance diagram for Monofonto_Regular_180:
GrFont

Public Member Functions

 Monofonto_Regular_180 (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.
 
- Public Member Functions inherited from GrFont
 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.
 

Public Attributes

const uint8_t charDefNdxOffset = 32
 Offset to the first character in the index.
 
- Public Attributes inherited from GrFont
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 Public Attributes

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.
 

Constructor & Destructor Documentation

◆ Monofonto_Regular_180()

Monofonto_Regular_180::Monofonto_Regular_180 ( void )
inline

Constructs a new font object.

Member Function Documentation

◆ charDef()

bool Monofonto_Regular_180::charDef ( char cc,
CharDef_t & results ) const
inlinevirtual

Defines the properties of each character.

Parameters
[in]ccCharacter to look up
[out]resultsCharDef_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_180::kerning ( uint16_t ID) const
inlinevirtual

Returns the amount of kerning that should be used between two characters.

Parameters
[in]IDIdentifier formed by combining two characters
Returns
Amount of kerning in screen pixels

Implements GrFont.

Member Data Documentation

◆ charDefNdxOffset

const uint8_t Monofonto_Regular_180::charDefNdxOffset = 32

Offset to the first character in the index.

◆ PROGMEM [1/2]

const int8_t charDefNdx [] Monofonto_Regular_180::PROGMEM
static

Index mapping characters to entries in the charDefData table.

◆ PROGMEM [2/2]

const int16_t charDefData [69][7] Monofonto_Regular_180::PROGMEM
static

Table defining the characteristics of each character.


The documentation for this struct was generated from the following file: