|
TinyGPU
|
Font rendering interface for TinyGPU-compatible framebuffers. More...
#include <IFont.h>

Public Member Functions | |
| virtual | ~IFont ()=default |
| Destroys the font interface. | |
| virtual void | drawText (ISurface< RGB_T > &target, int16_t x, int16_t y, const char *text, RGB_T foreground, RGB_T background, bool opaque=false, uint8_t scale=1, uint8_t spacing=1, uint8_t lineSpacing=1) const =0 |
| Draws a text string onto a framebuffer target. | |
| virtual size_t | measureTextWidth (const char *text, uint8_t scale=1, uint8_t spacing=1) const =0 |
| Returns the width of the longest text line in pixels. | |
| virtual size_t | measureTextHeight (const char *text, uint8_t scale=1, uint8_t lineSpacing=1) const =0 |
| Returns the total text height in pixels. | |
| virtual size_t | getHeight (uint8_t scale) const =0 |
| Returns the scaled glyph height in pixels. | |
Font rendering interface for TinyGPU-compatible framebuffers.
Implementations render text onto an ISurface target using their own glyph storage, layout, and scaling behavior.
|
virtualdefault |
Destroys the font interface.
|
pure virtual |
Draws a text string onto a framebuffer target.
Implemented in BitmapFont< RGB_T >.
|
pure virtual |
Returns the scaled glyph height in pixels.
Implemented in BitmapFont< RGB_T >.
|
pure virtual |
Returns the total text height in pixels.
Implemented in BitmapFont< RGB_T >.
|
pure virtual |
Returns the width of the longest text line in pixels.
Implemented in BitmapFont< RGB_T >.