Skip to content

A C# library for reading and writing AngelCode bitmap fonts in binary, XML, and text.

License

Notifications You must be signed in to change notification settings

AuroraBertaOldham/SharpFNT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpFNT

Introduction

SharpFNT is a C# library for reading and writing Angel Code bitmap fonts in binary, XML, and text. It is built for .NET Standard 1.3 or higher. It was written for my upcoming game called Everchanging.

Example

The following loads a bitmap font from a file, outputs the name of the font, changes the font name, and then saves it as a new binary bitmap font.

using SharpFNT;

BitmapFont bitmapFont = BitmapFont.FromFile("ExampleFont.fnt");

Console.WriteLine(bitmapFont.Info.Face);

bitmapFont.Info.Face = "New Name";

bitmapFont.Save("ExampleFont2.fnt", FormatHint.Binary);

Documentation

See the documentation for BMFont for information on rendering text and the properties of the file format.

Download

SharpFNT can be downloaded on NuGet.

License

Licensed under MIT.

About

A C# library for reading and writing AngelCode bitmap fonts in binary, XML, and text.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages