Special character drawing

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
parul
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Feb 14, 2005 05:11

Special character drawing

Postby parul » Thu May 05, 2005 06:06

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

Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest