public static void DrawString(this SpriteBatch spriteBatch, FontLibrary.IFont font, string text, Vector2 position, Color color) { spriteBatch.DrawString(font.MakeText(text), position, color); }
public Text(FontLibrary.IFont font) { Font = font ?? throw new ArgumentNullException(nameof(font)); }