I come from China. I try to use CEGUI, and I want show Chinese in my project. I followed some articles to do this(provide a .font file and a .ttf file, create font from c++, save as the file which contains Chinese words to UTF8 format...), and now I can show it.
But the memory occupancy increase a lot! I guess CEGUI create a texture for every "word", when I load Chinese font, more than ten thousand of glyphs are created, at the same time, 20M memory gone, and the startup became slowly....
How can I avoid this problem?
Does anyone know it ? I use DIRECTX9. If I use ID3DXFont interface shipped with the SDK, could the problem be solved?
This is my first post after I learn CEGUI four days. Thanks for any suggestion.
problem about CEGUI's font
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Hi and welcome ,
i am not sure whether you also looked at articles in the forums, but you might decrease the number of glyps which get created. Did you also search for 'GlyphRange'. This is a way of telling Cegui to not create all glyphs which could possibly in the font. Not all of the posts lead to a good solution, but they might lead to a clue
HTH.
i am not sure whether you also looked at articles in the forums, but you might decrease the number of glyps which get created. Did you also search for 'GlyphRange'. This is a way of telling Cegui to not create all glyphs which could possibly in the font. Not all of the posts lead to a good solution, but they might lead to a clue
HTH.
Check out my released snake game using Cegui!
I'll do it
Thanks a lot. I'll try it.
Who is online
Users browsing this forum: No registered users and 11 guests