Description

Parser for font files generated using AngelCode Bitmap Font Generator

Package Information

Version0.1.0 (2016-Mar-29)
Repository https://github.com/WebFreak001/bmfont-d
Licensepublic domain
CopyrightCopyright © 2016, webfreak
Authorswebfreak
Registered byWebFreak
Dependencies none

Installation

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

dub.json
dub.sdl

Readme

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();

Available versions

0.1.0 ~master