跳轉到主要內容

VectorFontRenderer

touchgfx/hal/VectorFontRenderer.hpp

Abstract interface for classes implementing vector font rendering.

Inherited by: VectorFontRendererImpl

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) =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
colortypecolor ,=0
uint8_talpha ,=0
TextRotationrotation ,=0
intx ,=0
inty=0
)=0

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.

Reimplemented by: touchgfx::VectorFontRendererImpl::drawGlyph

~VectorFontRenderer

Virtual destructor.