Skip to content

breqdev/vector-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages