|
|
static byte | _fontColors [4] |
| |
|
| | Font (byte firstCharIndex) |
| |
◆ LINE_WIDTH_TYPE
Type of line wrapping - Martian wraps based on chars, Amazon based on px.
Since the fonts are variable width we need to support both types to exactly wrap like the originals.
◆ Font()
| Access::Font::Font |
( |
byte |
firstCharIndex | ) |
|
|
protected |
◆ ~Font()
| virtual Access::Font::~Font |
( |
| ) |
|
|
virtual |
◆ charWidth()
| int Access::Font::charWidth |
( |
char |
c | ) |
const |
Get the width of a given character
◆ stringWidth()
Get the width of a given string
◆ getLine()
Get a partial string that will fit in a given width
- Parameters
-
| s | Source string. Modified to remove line |
| maxWidth | Maximum width allowed in px or chars (see widthType) |
| line | Output line |
| width | Actual width of returned line in selected units |
| widthType | Select the type of width constraint - px or chars |
- Returns
- True if last line
◆ drawString()
Draw a string on a given surface
◆ drawChar()
Draw a character on a given surface
The documentation for this class was generated from the following file: