Skip to content

TTF/OTF rendering in C# for XNA-compatible frameworks

Notifications You must be signed in to change notification settings

jacobalbano/FNT

Repository files navigation

A small library that uses SharpFont to dynamically render text in XNA or FNA.

var font = new FontLibrary(File.OpenRead("path/to/font.ttf"), GraphicsDevice);
var fontFace = font.CreateFont(64);
var text = font.MakeText("Hello, world!");
var bounds = new Rectangle(0, 0, text.Width, text.Height);

sb.RenderString(text, Vector2.Zero, Color.White);

About

TTF/OTF rendering in C# for XNA-compatible frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages