Page 1 of 1

problem about CEGUI's font

Posted: Fri Mar 14, 2008 01:29
by foruok
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.

Posted: Fri Mar 14, 2008 09:59
by scriptkid
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'll do it

Posted: Tue Mar 18, 2008 01:30
by foruok
Thanks a lot. I'll try it.