Crates.io | m5x7 |
lib.rs | m5x7 |
version | 1.0.0 |
source | src |
created_at | 2019-10-22 21:50:42.870464 |
updated_at | 2019-10-22 21:50:42.870464 |
description | Daniel Linssen's m5x7 font |
homepage | |
repository | https://github.com/boringcactus/m5x7 |
max_upload_size | |
id | 174756 |
size | 45,221 |
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');