Render Bitmap fonts in your OpenTK projects.
| 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 | ❌ |
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);Font file used for rendering
Screenshot of rendered text