Skip to main content

Crate bmpf2fnt

Crate bmpf2fnt 

Source
Expand description

Parse .bmpf bitmap font files (Stranded II / Blitz3D format) and generate .fnt (BMFont / AngelCode text format) output.

§.bmpf format (reverse-engineered from Blitz3D source)

[46-byte ASCII header]  "Unreal Software Bitmap Font Wizard bmpf File\r\n"
u16 LE frames           Number of tiles/frames in the spritesheet
u16 LE tile_w           Width of each tile in pixels
u16 LE tile_h           Height of each tile in pixels (font line height)
[3-byte records …]
  u8:    character code
  u16 LE: advance width (in pixels)
[terminator]             00 00 00

Re-exports§

pub use atlas::build_font_atlas;
pub use atlas::FontAtlas;
pub use atlas::GlyphRegion;
pub use bmpf::BmpfChar;
pub use bmpf::BmpfFont;
pub use error::BmpfError;
pub use fnt::generate_bmfont;

Modules§

atlas
bmpf
Parses .bmpf bitmap font files in the Stranded II / Blitz3D format.
cli
error
fnt