Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webfreak001/bmfont-d
BMFont parser & encoder
https://github.com/webfreak001/bmfont-d
angelcode-bitmap-fonts angelcode-bmfont bmfont font parser
Last synced: 25 days ago
JSON representation
BMFont parser & encoder
- Host: GitHub
- URL: https://github.com/webfreak001/bmfont-d
- Owner: WebFreak001
- License: unlicense
- Created: 2016-03-29T17:53:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T10:02:45.000Z (about 5 years ago)
- Last Synced: 2024-11-12T06:38:33.905Z (3 months ago)
- Topics: angelcode-bitmap-fonts, angelcode-bmfont, bmfont, font, parser
- Language: D
- Homepage: https://bmfont.dpldocs.info/0.2.0/
- Size: 153 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bmfont
Parser & generator for font files generated using AngelCode Bitmap Font Generator
## Usage
### Parsing files
```d
import bmfont;import std.file;
import std.stdio : writeln;auto font = parseFnt(cast(ubyte[]) read("fonts/roboto.fnt"));
writeln(font.info.fontName);
```### Generating files
```d
import bmfont;Font font; // ... set somewhere
string text = font.toString();
ubyte[] binary = font.toBinary();
```