bmf-parser is a Rust crate for reading and parsing BMFont binary files, a popular font format for bitmap fonts often used in games and graphical applications. With bmf-parser, you can easily load BMFont data into a BMFont struct.
- Simple API: Load BMFont binary data directly into a
BMFontstructure using a single method. - Comprehensive Font Data: Access font metadata, character properties, page details, and kerning pairs.
- Efficient Parsing: Designed to be fast and efficient, perfect for games and applications needing bitmap font support.
To start using bmf-parser, add it as a dependency in your Cargo.toml:
[dependencies]
bmf-parser = "0.0.1"use bmf_parser::BMFont;
use std::{fs, io};
fn main() -> std::io::Result<()> {
let mut octets = fs::read("path/to/font.fnt")?;
let font = BMFont::from_octets(&octets)?;
println!("Font info: {:?}", font.info);
println!("Character count: {}", font.chars.len());
Ok(())
}- https://snowb.org/
- https://hahahoho.studio/
- https://www.bmglyph.com/
- https://github.com/vladimirgamalyan/fontbm
This project is licensed under the MIT License - see the LICENSE file for details.