PDA

View Full Version : text_styler.cpp



hubadu
07-12-2008, 12:28 AM
I finaly found why we only get a single color when using CL_TextStyler.
Due to the implemenation of the font classes, all the CL_Font object produced by the get_font function are pointing on the same object.

You can make a simple test by replacing this (line 73 in text_styler.cpp):

CL_Font fnt = fntit->second;
by

CL_Font fnt("Arial",16);


http://uppix.net/8/8/c/2e60dae2780a37eeea6037f09a47b.png