View Full Version : Using CL_TextStyler

06-14-2007, 11:20 PM
I have been trying to use CL_TextSyler using the examples from font overview.
Then i noticed something weid:

CL_TextStyler = ts_test;
ts_test.add_font("default", font1);
ts_test.add_font("bold", font2);

ts_test.draw(0, 0,
"RedBlueGreen (slightly transparent).\n"

all the text appears in blue

also some lines from the example make the program to crash.

pd. im using clanlib 0.8.0

06-17-2007, 12:24 AM
tried also the example from the reference:

"This text is in whatever the font's default color is.This text is blue.This text is red, not blue-red; there's no blending between nested colors.This text is green. This text is translucent purple; the fourth number is the alpha value, which is set to opaque (255) if unspecified."

and all text appears in purple...

06-17-2007, 01:23 PM
The TextStyler was a contribution to ClanLib from a developer no longer active, so I guess your only hope to fix it is to dig in yourself...

06-17-2007, 09:33 PM
well, then I will use CL_GlyphBuffer