Exemple #1
0
        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);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 public Text(FreetypeFont Font, string Text) : this(Font, Text, Vector2.Zero, Quaternion.Identity, Color.White)
 {
 }
Exemple #4
0
 public Text(FreetypeFont Font) : this(Font, "")
 {
 }