Skip to main content

VectorFontRendererImpl

touchgfx/VectorFontRendererImpl.hpp

Implementation of the VectorFontRenderer interface.

Inherits from: VectorFontRenderer

Public Functions

virtual voiddrawGlyph(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()
voidgetVectorFontBuffers(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 ,
colortypecolor ,
uint8_talpha ,
TextRotationrotation ,
intx ,
inty
)

Draws one glyph from the provided data.

Parameters:
canvasAreaAbsThe canvas dimensions in absolute coordinates.
invalidatedAreaRelThe area which should be updated in relative coordinates to the canvas area.
dataData containing tags and points for all contours of the glyph.
fontThe font to use.
colorThe color of the glyph.
alphaThe transparency of the glyph.
rotationRotation to do before drawing the glyph.
xDistance to advance horizontally.
yDistance 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:
pointArrayArray for the points.
pointArraySizeSize of the pointArray.
commandArrayArray for the commands.
commandArraySizeSize of the commandArray.