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:
  • 1 downloads today

  • 1 downloads this week

  • 2 downloads this month

  • 395 downloads total

Score:
0.9
Short URL:
bmfont.dub.pm