bmfont 0.2.0

Parser for font files generated using AngelCode Bitmap Font Generator


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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.2.0 2020-Jan-06
0.1.0 2016-Mar-29
~master 2020-Jan-06
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 412 downloads total

Score:
0.8
Short URL:
bmfont.dub.pm