diff --git a/Source/Examples/WinForms/FontRendering.Designer.cs b/Source/Examples/WinForms/FontRendering.Designer.cs index c8a6f324..24bef8f1 100644 --- a/Source/Examples/WinForms/FontRendering.Designer.cs +++ b/Source/Examples/WinForms/FontRendering.Designer.cs @@ -68,7 +68,7 @@ this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(550, 22); this.textBox1.TabIndex = 2; - this.textBox1.Text = "The quick fox jumped over the lazy dogs. 0123456789"; + this.textBox1.Text = "The quick brown fox jumped over the lazy dogs. 0123456789"; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // FontRendering diff --git a/Source/Examples/WinForms/FontRendering.cs b/Source/Examples/WinForms/FontRendering.cs index aa98f9f1..07363c64 100644 --- a/Source/Examples/WinForms/FontRendering.cs +++ b/Source/Examples/WinForms/FontRendering.cs @@ -77,15 +77,16 @@ namespace Examples.WinForms //GL.Color4(Color.Blue); //GL.BlendColor(0, 0, 0, 0); - text.Begin(); + //text.Begin(); + RectangleF rect = new RectangleF(); foreach (Font font in fonts) { - text.Print(textBox1.Text, font, Color.White); - GL.Translate(0, font.Height, 0); + text.Print(textBox1.Text, font, Color.White, rect); + rect.Y += font.Height; } - text.End(); + //text.End(); glControl1.SwapBuffers(); }