static DefaultFonts() { ConsoleFont = new FreetypeFont("content/fonts/Hack.ttf", 16); MainMenuSmall = new FreetypeFont("content/fonts/Hack.ttf", 16); MainMenuMedium = new FreetypeFont("content/fonts/Hack.ttf", 22); MainMenuBig = new FreetypeFont("content/fonts/Hack.ttf", 32); }
public Text(FreetypeFont Font, string Text, Vector2 Position, Quaternion Rotation, Color Color) { this.Font = Font; this.String = Text; this.Position = Position; this.Rotation = Rotation; this.Color = Color; Mesh = new Mesh2D(); }
public Text(FreetypeFont Font, string Text) : this(Font, Text, Vector2.Zero, Quaternion.Identity, Color.White) { }
public Text(FreetypeFont Font) : this(Font, "") { }