bmfont

Function parse

Source
pub fn parse(fontdescriptorpath: PathBuf) -> BmFont
Examples found in repository?
examples/parse.rs (line 12)
7
8
9
10
11
12
13
14
fn main() {
    let cwd: PathBuf = env::current_dir().unwrap();
    let assetspath: PathBuf = PathBuf::from(cwd).join(Path::new("examples/assets"));
    let fontdescriptorpath: PathBuf = assetspath.join(Path::new("font.fnt"));

    let res = bmparse(fontdescriptorpath);
    println!("{:?}", res);
}