sfl_parser 1.2.0

Lightweight and easy-to-use bitmap font (.sfl) parser
Documentation

sfl_parser

Build Status Docs Crates.io

A lightweight and easy-to-use .sfl file (bitmap font) parser made with Rust.

How to use

Documentation at docs.rs or simply:

  1. Add the following to your dependencies:
    [dependencies]
    sfl_parser="1.2"
    
  2. To your Rust project add the following line:
    extern crate sfl_parser;
    
  3. You're done! Here is an example of how to use it:
    use sfl_parser::BMFont;
    
    let bmfont = match BMFont::from_path("examples/fonts/iosevka.sfl") {
        Ok(bmfont) => bmfont,
        Err(_) => panic!("Failed to load iosevka.sfl"),
    };
    
    println!("bmfont: {}", bmfont);
    

License

This crate is distributed under the terms of the MIT License.