#include <Font.hh>
|
| Font (uint8_t width, uint8_t height, uint8_t first, uint8_t last, const uint8_t *bitmap, uint8_t compression_type=0, uint8_t spacing=1, uint8_t line_spacing=1) |
|
bool | available (char c) |
|
virtual void | draw (Canvas *canvas, char c, uint16_t x, uint16_t y, uint8_t scale) |
|
Definition at line 30 of file Font.hh.
Font::Font |
( |
uint8_t |
width, |
|
|
uint8_t |
height, |
|
|
uint8_t |
first, |
|
|
uint8_t |
last, |
|
|
const uint8_t * |
bitmap, |
|
|
uint8_t |
compression_type = 0 , |
|
|
uint8_t |
spacing = 1 , |
|
|
uint8_t |
line_spacing = 1 |
|
) |
| |
|
inline |
Construct font descriptor.
- Parameters
-
[in] | width | character width. |
[in] | height | character height. |
[in] | first | character available. |
[in] | last | character available. |
[in] | bitmap | font storage. |
[in] | compression_type. | |
[in] | spacing | recommended character spacing. |
[in] | line_spacing | recommended line spacing. |
Definition at line 57 of file Font.hh.
bool Font::available |
( |
char |
c | ) |
|
|
inline |
Determine if character is available in font.
- Parameters
-
- Returns
- true if available.
Definition at line 79 of file Font.hh.
void Font::draw |
( |
Canvas * |
canvas, |
|
|
char |
c, |
|
|
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
uint8_t |
scale |
|
) |
| |
|
virtual |
Draw character on given canvas.
- Parameters
-
[in] | canvas. | |
[in] | c | character. |
[in] | x | position. |
[in] | y | position. |
[in] | scale. | |
Definition at line 24 of file Font.cpp.
const uint8_t Font::FIRST |
const uint8_t Font::HEIGHT |
uint8_t Font::LINE_SPACING |
const uint8_t* Font::m_bitmap |
|
protected |
const uint8_t Font::m_compression_type |
|
protected |
Compression type.
Definition at line 146 of file Font.hh.
const uint8_t Font::SPACING |
const uint8_t Font::WIDTH |
Font size; width/height and character/line spacing.
Definition at line 35 of file Font.hh.
The documentation for this class was generated from the following files: