Expand description
The ProFont monospace programming font for use with embedded-graphics. Font data taken from the ProFont homepage.
Synopsis
Assuming display
is something that implements the Drawing
trait
display.draw(
ProFont24Point::render_str("Hello World")
.with_stroke(Some(Color::Red))
.with_fill(Some(Color::White))
.translate(Coord::new(10, 10))
.into_iter(),
);
For a more complete example see the example in the ssd1675 crate.
Glyph Coverage
This crate provides support for ISO/IEC 8859-1 (latin1), although do note that the font is missing a few glyphs in this range.
Enums
Type Definitions
The 7 point size with a character size of 5x9 pixels.
The 9 point size with a character size of 6x11 pixels.
The 10 point size with a character size of 7x13 pixels.
The 12 point size with a character size of 8x15 pixels.
The 14 point size with a character size of 10x18 pixels.
The 18 point size with a character size of 12x22 pixels.
The 24 point size with a character size of 16x30 pixels.