I have problem when using chinese font!

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

kofight
Just popping in
Just popping in
Posts: 8
Joined: Tue Dec 12, 2006 02:01

I have problem when using chinese font!

Postby kofight » Tue Dec 12, 2006 03:33

I searched on the forums and found some way to use chinese font.

but I can't find the CEGUIchineseDemo.zip file now, all the link I can find can't work.

When I try it myself, there is some problem.

I wrote my font file like this, and save it with ascii code.
<?xml version="1.0" ?>
<Font Name="BlueHighway-12" Filename="simfang.ttf" Type="FreeType" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
<GlyphSet Glyphs="你好世界退出演示"/>
</Font>

But it doesnt works, It throwed exception "ExpatParse::ParseXMLFile - XML Parsing error 'not well formed(invaild token)' at line 3"

Then I try to save the xml file with utf8 code.

It throwed exception "Font::xmlHandler::startElement - Unexcepted data was found while parsing the font file:'GlyphSet' is unknown."

Then I thought about setting GlyphSet in code instead of setting it in xml.

But I found that CEGUI::Font doesn't have defineGlyphSet() function any more.

If I don't set GlyphSet, it works, but I can't see any chinese in application.


Is there any Demo source code which can works with CEGUI5.0b? If there is, please send it to me. Or tell me a solution for the problem?

I am using CEGUI-SDK-0.5.0b-vc8.zip with vs2005.net. :shock:

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Dec 12, 2006 08:34

Hi kofight,

welcome to the forums :-)

I have send the author of the demo (kalitbri) a PM with a question to re-upload his sample somewhere. Let's hope he reads it ;-)

kofight
Just popping in
Just popping in
Posts: 8
Joined: Tue Dec 12, 2006 02:01

Postby kofight » Tue Dec 12, 2006 09:43

Thanks a lot.
I'll wait for the demo.

It will be great if there is code runs in current version.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Wed Dec 13, 2006 09:18

Thanks to kalitbri, all URL's in this thread should be up again:
http://www.cegui.org.uk/phpBB2/viewtopi ... ht=chinese

I'll see if we can mirror them or something.

kofight
Just popping in
Just popping in
Posts: 8
Joined: Tue Dec 12, 2006 02:01

Postby kofight » Thu Dec 14, 2006 05:34

Got it, thank you and kalitbri


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests