[−][src]Crate profont
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( Text::new("Hello World") into_styled(text_style!( font = ProFont24Point, text_color = Black, background_color = White )) .translate(Point::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.
Structs
ProFont7Point | The 7 point size with a character size of 5x9 pixels. |
ProFont9Point | The 9 point size with a character size of 6x11 pixels. |
ProFont10Point | The 10 point size with a character size of 7x13 pixels. |
ProFont12Point | The 12 point size with a character size of 8x15 pixels. |
ProFont14Point | The 14 point size with a character size of 10x18 pixels. |
ProFont18Point | The 18 point size with a character size of 12x22 pixels. |
ProFont24Point | The 24 point size with a character size of 16x30 pixels. |