vector-text 0.1.0

A library for rendering text into a series of points using various vector fonts.
Documentation

The vector-text crate

vector-text is a library for drawing text to a vector output using various vector-based fonts.

This can be used for drawing text to plotters, with laser displays, on XY oscilloscopes, or for other purposes!

The library supports no_std environments but requires an allocator.

Supported fonts include:

  • BGI (Borland) fonts including LITT.CHR, via [vector_text_borland]
  • Hershey fonts, via [vector_text_hershey]
  • The NewStroke font, via [vector_text_newstroke]

This library provides the render_text function which you can use to render text, e.g.:

use vector_text::{render_text, VectorFont, HersheyFont};

let result = render_text("Hello World!", VectorFont::HersheyFont(HersheyFont::Romans));