embedded-graphics-unicodefonts 0.2.0

Monospaced embedded-graphics fonts with more glyphs
Documentation

embedded-graphics-unicodefonts

Rust crate for embedded-graphics fonts with larger range of unicode characters such as drawing glyphs or braille. Created for Mousefood.

FontAtlas System

Fonts with _atlas suffix use a FontAtlas instead of StrGlyphMapping for glyph lookups, providing up to 80x faster performance compared to non-atlas fonts.

use embedded_graphics_unicodefonts::mono_6x13_atlas;

let font = mono_6x13_atlas();

Both standard MonoFont constants and atlas-backed functions are available for each font size.

Example

MONO_6X10 (replaces embedded-graphics::mono_font::ascii::FONT_6X10)

MONO_6X10

Generated using embedded-graphics/bdf from xorg misc-misc font.

All fonts are generated using tools/bdf-atlas-converter/generate-fonts.sh, which uses the bdf-atlas-converter tool. This CLI can also be used to generate embedded fonts from user-supplied BDF files. Existing fonts are sourced from from xorg misc-misc font.