VectorFontRenderer
touchgfx/hal/VectorFontRenderer.hpp
Abstract interface for classes implementing vector font rendering.
Inherited by: VectorFontRendererImpl
Public Functions
virtual void | drawGlyph(const Rect & canvasAreaAbs, const Rect & invalidatedAreaRel, const uint16_t data, const Font font, colortype color, uint8_t alpha, TextRotation rotation, int x, int y) =0 |
Draws one glyph from the provided data. | |
virtual | ~VectorFontRenderer() |
Virtual destructor. | |
Public Functions Documentation
drawGlyph
virtual void drawGlyph | ( | const Rect & | canvasAreaAbs , | =0 | |
const Rect & | invalidatedAreaRel , | =0 | |||
const uint16_t * | data , | =0 | |||
const Font * | font , | =0 | |||
colortype | color , | =0 | |||
uint8_t | alpha , | =0 | |||
TextRotation | rotation , | =0 | |||
int | x , | =0 | |||
int | y | =0 | |||
) | =0 |
Draws one glyph from the provided data.
Parameters:
canvasAreaAbs | The canvas dimensions in absolute coordinates. |
invalidatedAreaRel | The area which should be updated in relative coordinates to the canvas area. |
data | Data containing tags and points for all contours of the glyph. |
font | The font to use. |
color | The color of the glyph. |
alpha | The transparency of the glyph. |
rotation | Rotation to do before drawing the glyph. |
x | Distance to advance horizontally. |
y | Distance to move down. |
Reimplemented by: touchgfx::VectorFontRendererImpl::drawGlyph
~VectorFontRenderer
virtual ~VectorFontRenderer | ( | ) |
Virtual destructor.