heavymental
12-09-2008 19:11:12
Hi,
I want polish fonts in Ogre.
Then I use QuickGui. Is very fast and easy.
But how can I use with QG polish fonts (example - Å‚, Å›) ?
I must use setSupportedCodePoints ?
How?
Stupid question? ;]
kungfoomasta
13-09-2008 19:00:51
Yah, you will need to use the GUIManager to set the supported fonts. The injectText function only injects supported code points.
heavymental
13-09-2008 20:31:14
Thanks! I will try ^_________^
...
Im soo stupid =.=
Can you tell exactly how write it?
Sorry ;]
heavymental
09-10-2008 14:39:12
Can someone help? ;]
I dont know how to use setSupportedCodePoints,
how to create code ponits ( std::set<Ogre::UTFString::code_point>& list )
kungfoomasta
09-10-2008 18:51:50
In ogre, a code_point is a uint16. So basically you just create a set, fill it with code_points, and pass it to GUIManager::setSupportedCodePoints function. Here is an example:
#include <set> // links to STL's set container
...
// create a set of code_point objects
std::set<Ogre::UTFString::code_point> myCodePoints;
// add some random code_points into the set
myCodePoints.insert(57);
myCodePoints.insert(128);
myCodePoints.insert(7);
// tell our GUIManager what are acceptable code_points to inject as char
mGUIManager->setSupportedCodePoints(myCodePoints);
The code_points you want to support are specific to your .ttf file. You can view the ttf from the "Character Map" application:
Start -> All Programs -> Accessories -> System Tools -> Character Map