virabhadra's picture

I think... bug with "TextPrinter".

Project:The Open Toolkit library
Version:0.9.8-2
Component:Code
Category:bug report
Priority:normal
Assigned:virabhadra
Status:closed
Description

class A : Form
{
// When I use "TextPrinter" object like class member
TextPrinter tp = new TextPrinter(TextQuality.High);
Font text_font = new Font("Verdana", 10);

void Render()
{
// first string: "Hello"
GL.LoadIdentity();
GL.Translate(0, 100, 0);
tp.Print("Hello", text_font, Color.White);

// second string: "Hello"
GL.LoadIdentity();
GL.Translate(0, 200, 0);
// here Color.Red is ignored and used previous Color.White, because strings are same
tp.Print("Hello", text_font, Color.Red);

// other string: "Hello again"
GL.LoadIdentity();
GL.Translate(0, 300, 0);
// changing of color works again, but string must be different
tp.Print("Hello again", text_font, Color.Red);
}
}

Is it bug or my mistake?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Version:0.9.9-0» 0.9.x-dev
Status:open» fixed

Already fixed in 0.9.8-2 and 0.9.9-1 (to be released this week).

the Fiddler's picture

#2

Status:fixed» closed

Closing bugs fixed in 0.9.8-2 and 0.9.9-1.

the Fiddler's picture

#3

Version:0.9.x-dev» 0.9.8-2