/BitmapFontLibrary

Library for rendering Bitmap fonts in OpenTK projects.

Primary LanguageC#MIT LicenseMIT

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