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

#include <Monofonto-Regular-64.h>

Inheritance diagram for Monofonto_Regular_64:
GrFont

Public Member Functions

 Monofonto_Regular_64 (void)
 
bool charDef (char cc, CharDef_t &results) const
 Abstract function, used to define the characteristics of each character.
 
int8_t kerning (uint16_t ID) const
 Finds 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
 Finds 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 with of character, cc, in screen pixels.
 
uint16_t textWidth (const char *const text, uint16_t buffSize) const
 Determines the with of string in the character array, text.
 

Additional Inherited Members

- 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
 

Constructor & Destructor Documentation

◆ Monofonto_Regular_64()

Monofonto_Regular_64::Monofonto_Regular_64 ( void )
inline

Member Function Documentation

◆ charDef()

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

Abstract function, used to define the characteristics of each character.

Parameters
[in]ccCharacter to look up
[out]resultsCharDef_t struction containing information on character, cc
Returns
Returns true if cc was found. Returns false if not

Implements GrFont.

◆ kerning()

int8_t Monofonto_Regular_64::kerning ( uint16_t ID) const
inlinevirtual

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

Parameters
[in]ID16-bit encoded value representing the 2 characters (CHAR1:CHAR2)
Returns
Returns the amount of kerning in screen pixels

Implements GrFont.


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