10-23-2012 07:15 AM
We need to display the users name in the leaderboards. The name could contain any UTF character (so, English, Japanese, German etc). The standard bbutil_* utility routines on do the first 128 characters, so this isn't going to work. So how is everyone else displaying names etc? There's 3415 glyphs in the Arial font, thats 13 megs of textures to support the whole lot.
10-28-2012 09:11 AM
Load the char font only when needed;
it should work by "font load BUFFER" for such UTF code ,
1 define a STL MAP ,map<charcode, font *>
2 count the new chars need to display,if it is not in the MAP, in this page
3 load the new chars in one time , then put in MAP.
4 render page by the font handle in the MAP
5,and go on next page.
6 free the unnecessory chars in the MAP when the MAP grows big, as you wants,