bmfont 0.1.0

Parser for font files generated using AngelCode Bitmap Font Generator


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

bmfont

Parser & generator for font files generated using AngelCode Bitmap Font Generator

Usage

Parsing files

import bmfont;

import std.file;
import std.stdio : writeln;

auto font = parseFnt(cast(ubyte[]) read("fonts/roboto.fnt"));

writeln(font.info.fontName);

Generating files

import bmfont;

Font font; // ... set somewhere

string text = font.toString();
ubyte[] binary = font.toBinary();

Authors:webfreak

Dependencies: none

Versions:
0.1.0 2016-Mar-29
~master 2016-Mar-29
Show all 2 versions
Stats:

statistics are temporarily disabled.