Page 1 of 1

[SOLVED] Problem with font

Posted: Sun Mar 01, 2009 02:20
by westpointer
I use a chinese font in CEGUI Layout Editor. But the editor crash on running giving the following message:
CELayoutEditor Error
---------------------------
CELayoutEditor has detected and caught an exception. The following detailed info is available:

Description: Error
Exception Location: EditorFrame::LoadData
Exception Message: FreeTypeFont::load - The font 'msJKT-12' does not have a Unicode charmap, and cannot be used.
Exception Filename: \Temp\CEGUI-0.6.1-vc7\src\CEGUIFreeTypeFont.cpp
Exception Line: 413

Is it the problem of my ttf file? How can I solve it?

Re: Problem with font

Posted: Sun Mar 01, 2009 19:06
by CrazyEddie
Hi,

westpointer wrote:Is it the problem of my ttf file?

Yes; because text rendering in CEGUI tries to be Unicode aware, we require that ttf font files have the Unicode character set.

westpointer wrote:How can I solve it?

Unfortunately, I think the only solution is to replace the ttf file with another that provides the required character set.

CE.