Module embedded_graphics::mono_font [−][src]
Expand description
Monospaced bitmap fonts.
This module contains support for drawing monospaced bitmap fonts and provides several built-in fonts.
Additional custom fonts can be added by the application or other crates. This
is demonstrated in the text-custom-font
example in the examples repository.
Examples
The text
module contains examples how these fonts can be used in an application.
Built-in fonts
Each built-in font is provided in different glyph subsets. The ASCII variant is the smallest subset which saves memory in embedded applications, but only covers all characters of the English language. The ISO 8859 subsets support a wide range of languages, see Wikipedia for a list of languages.
The table below shows the ASCII variant of the built-in fonts. See the subset modules for an overview of the complete character set included in the other variants.
Type | Screenshot | Type | Screenshot | |
---|---|---|---|---|
FONT_4X6 | FONT_7X13_ITALIC | |||
FONT_5X7 | FONT_7X14 | |||
FONT_5X8 | FONT_7X14_BOLD | |||
FONT_6X9 | FONT_8X13 | |||
FONT_6X10 | FONT_8X13_BOLD | |||
FONT_6X12 | FONT_8X13_ITALIC | |||
FONT_6X13 | FONT_9X15 | |||
FONT_6X13_BOLD | FONT_9X15_BOLD | |||
FONT_6X13_ITALIC | FONT_9X18 | |||
FONT_7X13 | FONT_9X18_BOLD | |||
FONT_7X13_BOLD | FONT_10X20 |
Modules
ascii | ASCII glyph subset. |
iso_8859_1 | ISO_8859_1 glyph subset. |
iso_8859_2 | ISO_8859_2 glyph subset. |
iso_8859_3 | ISO_8859_3 glyph subset. |
iso_8859_4 | ISO_8859_4 glyph subset. |
iso_8859_5 | ISO_8859_5 glyph subset. |
iso_8859_7 | ISO_8859_7 glyph subset. |
iso_8859_9 | ISO_8859_9 glyph subset. |
iso_8859_10 | ISO_8859_10 glyph subset. |
iso_8859_13 | ISO_8859_13 glyph subset. |
iso_8859_14 | ISO_8859_14 glyph subset. |
iso_8859_15 | ISO_8859_15 glyph subset. |
iso_8859_16 | ISO_8859_16 glyph subset. |
jis_x0201 | JIS_X0201 glyph subset. |
mapping | Glyph mapping. |
Structs
DecorationDimensions | Decoration dimensions. |
MonoFont | Monospaced bitmap font. |
MonoTextStyle | Style properties for text using a monospaced font. |
MonoTextStyleBuilder | Text style builder for monospaced fonts. |