Attached is a vector based font library 'vFont' that I've been working on as part of another project, for a Teensy3.6. vFont features most things one would expect from a vector font library; such as configurable paths', brush types and size and string/glyph orientation. To keep performance up, vFont renders directly to a frame buffer, then written to display whenever (see demo).
Here it is released separately as an easily expandable C API (C, none of this class rubbish here).
Source: View attachment vfont_210617.zip
Usage example, to draw the base green layer from the attached video:
Animated text:
Here it is released separately as an easily expandable C API (C, none of this class rubbish here).
Source: View attachment vfont_210617.zip
Usage example, to draw the base green layer from the attached video:
Code:
// set the initial state
setFont(ctx, &gothiceng);
setGlyphScale(ctx, 4.0f);
setRenderFilter(ctx, RENDEROP_NONE);
setBrush(ctx, BRUSH_DISK);
setBrushStep(ctx, 5.0f);
setBrushSize(ctx, 40.0f);
setBrushColour(ctx, COLOUR_PAL_DARKGREEN);
// now do the rendering
drawString(ctx, "Gothic", x, y);
Animated text:
Last edited: