Chinese font display OK and bug report!

darkdragon

14-02-2008 12:30:35

I use ogre1.4.6 + quickgui 0.9.7
All chinese word display normally
but this part must be modified first in QuickGuiTextHelper.h and QuickGuiTextHelper.cpp
Ogre::Real TextHelper::getTextWidth(const Ogre::String& text)
please change to this:
Ogre::Real TextHelper::getTextWidth(const Ogre::UTFString& text)
that make the label autosize width is correct in using chinese or otherwise multibytes words.

sorry for my poor English. :oops:

kungfoomasta

14-02-2008 17:51:27

Thanks for the feedback, I'll commit this later this evening. :)

snowcat

19-02-2008 19:01:18

darkdragon,请问你怎么用quickgui显示的中文å