VectorFontRendererImpl
touchgfx/VectorFontRendererImpl.hpp
Implementation of the VectorFontRenderer interface.
Inherits from: VectorFontRenderer
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) |
Draws one glyph from the provided data. | |
VectorFontRendererImpl() | |
void | getVectorFontBuffers(float & pointArray, int & pointArraySize, uint8_t & commandArray, int & commandArraySize) |
Get buffers for commands and points for the vector font. | |
Additional inherited members
Public Functions inherited from VectorFontRenderer
virtual | ~VectorFontRenderer() |
Virtual destructor. | |
Public Functions Documentation
drawGlyph
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 | ||||
) |
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. |
Reimplements: touchgfx::VectorFontRenderer::drawGlyph
VectorFontRendererImpl
getVectorFontBuffers
static void getVectorFontBuffers | ( | float *& | pointArray , | ||
int & | pointArraySize , | ||||
uint8_t *& | commandArray , | ||||
int & | commandArraySize | ||||
) |
Get buffers for commands and points for the vector font.
Parameters:
pointArray | Array for the points. |
pointArraySize | Size of the pointArray. |
commandArray | Array for the commands. |
commandArraySize | Size of the commandArray. |