Skip to content

Library for rendering Bitmap fonts in OpenTK projects.

License

Notifications You must be signed in to change notification settings

Kr0oked/BitmapFontLibrary

Repository files navigation

BitmapFontLibrary

Render Bitmap fonts in your OpenTK projects.

Features

Feature Supported
Unicode charset
OEM charset
Line breaks
Kerning
Text font files
xml font files
Binary font files
png textures
tga textures
dds textures
Characters packed in multiple channels

How to use

This library uses Ninject for dependency injections. So get a BitmapFont object from the BitmapFontModule and start drawing texts.

IKernel kernel = new StandardKernel(new BitmapFontModule());
_bitmapFont = kernel.Get<BitmapFont>();
_bitmapFont.Initialize("exampleFont.xml");
_bitmapFont.Draw("My text", 0.0f, 50.0f, 0.0f, 1.0f);

Example

Font file used for rendering

example-font

Screenshot of rendered text

example-screenshot

Create your own Bitmap font

About

Library for rendering Bitmap fonts in OpenTK projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages