bmf-parser 0.0.2

read BMFont binary files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Peter Bjorklund. All rights reserved.
 *  Licensed under the MIT License. See LICENSE in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

use std::fs;

#[test]
fn test() {
    let octets = fs::read("assets/menu.fnt").unwrap();

    let bmf = bmf_parser::BMFont::from_octets(&octets).expect("could not read menu.fnt");

    println!("{bmf:?}");
}