1 stable release

1.0.0 Oct 22, 2019

#923 in Graphics APIs

CC0 license

14KB

Daniel Linssen's m5x7 as a Rust crate

docs.rs

This crate statically embeds the m5x7 font by Daniel Linssen. This allows, e.g., text rendering libraries to create examples that don't require an external font dependency. This crate, like the m5x7 font, is CC0 licensed, but giving credit to Daniel Linssen for creating the font would be appreciated.

Cache construction with piston2d-graphics:

let cache = GlyphCache::from_bytes(m5x7::BYTES, (), texture_settings);

Direct access with rusttype (requires the parsed feature):

let glyph = m5x7::FONT.glyph('A');

lib.rs:

This crate statically embeds the m5x7 font by Daniel Linssen. This allows, e.g., text rendering libraries to create examples that don't require an external font dependency.

Cache construction with piston2d-graphics:

let cache = GlyphCache::from_bytes(m5x7::BYTES, (), texture_settings);

Dependencies

~93KB