russian fonts

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

anthony
Just popping in
Just popping in
Posts: 8
Joined: Mon Jan 19, 2009 14:20
Location: Russia, Novocherkassk
Contact:

russian fonts

Postby anthony » Tue Jan 20, 2009 11:52

Is it possible to add russian input/output support in 0.5.x version?

This solutions seems to be for older versions of CEGUI?:
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1025
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1382

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Jan 20, 2009 20:03

Hi,

The situation is largely unchanged - CEGUI accepts input the same way, and can output any character glyph supported by the font(s) you're using.

For input, CEGUI will use whatever you pass to it - so to input russian characters just ensure you pass them as UTF-32 codepoints to the system via the injectChar function as described here

Our FontDemo sample app shows a selection of text output it various langauges, including russian. You do not have to do anything particularly special to enable this support, the main things are to ensure your font (as in the .ttf file) provides the glyphs you need, make sure your xml and/or source files containing any russian text are utf8 encoded, and if specifying text strings in C++ code, cast the strings pointers to CEGUI::utf8*

HTH

CE.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 11 guests