Skip to content

j-g00da/embedded-graphics-unicodefonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

embedded-graphics fonts with larger range of unicode characters such as drawing glyphs and Braille

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •