psf2 0.4.0

Minimal, unopinionated PSF2 bitmap font parser
Documentation
1
2
3
4
5
6
7
8
9
10
use psf2::Font;

const FONT: &[u8] = include_bytes!("../Tamzen6x12.psf");

#[test]
fn smoke() {
    let font = Font::new(FONT).unwrap();
    assert_eq!(font.width(), 6);
    assert_eq!(font.height(), 12);
}