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