Hi All,
I am working on HTML Viewer widget. In my application I want to display special character like pound sign (ASCII value - 243), currency sign (ASCII value 244). But when I try to draw these characters then it display only up to ASCII value 127 after that it doesn’t display any character. I am using Arial font. Below is my line of code for drawing.
unsigned char *specialChar = new unsigned char[2];
for(i=120; i <145; i++)
{
*specialChar = i;
String charString = (utf8*)specialChar;
float d_width = fnt->getTextExtent(charString);
fnt->drawText(charString, absrect,
System::getSingleton().getRenderer()->getZLayer(2), clipper, LeftAligned, colours);
absrect.d_left += d_width;
}
just tell me how I can display these characters. Thanking you
Regards
Parul
Special character drawing
Moderators: CEGUI MVP, CEGUI Team
Return to “CEGUI Library Development Discussion”
Who is online
Users browsing this forum: No registered users and 2 guests