You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dean Herbert f18710f521 Update venera bmfont to have a displayable grave
This required manual edits to the `otf` files to allow the bmfont export
process to see the characters (which were previously "out of bound"
according to it).

Not including the otf files as that would likely be an issue with
licencing.
3 years ago
..
Inter Move fonts to individual folders and add licences 4 years ago
Noto Move fonts to individual folders and add licences 4 years ago
Torus Move fonts to individual folders and add licences 4 years ago
Torus-Alternate Add Torus alternate glyphs 4 years ago
Venera Update venera bmfont to have a displayable grave 3 years ago
README.md Add instructions 7 years ago
osuFont.bin Convert .fnt (textual) font files to .bin (binary) 7 years ago
osuFont_0.png Trim font spritesheet sizes where possible 6 years ago

README.md

How to create binary font files

There are two options:

When generating

When using the official BMFont generator, there is a setting in "Export Options" that specifies the output file format. Just set that to "binary" to get the correct file format. Remember to use the file extension ".bin".

Converting existing fonts

using SharpFNT;

string filename = "MyFont.fnt";

var font = BitmapFont.FromFile(filename);

// This value is ignored for Unicode fonts, but serializing will fail
// if this is empty so just set it to ANSI (0 in binary)
if (font.Info.Charset == string.Empty)
{
    font.Info.Charset = "ANSI";
}

font.Save(Path.ChangeExtension(filename, "bin"), FormatHint.Binary);