Re: UTF-8 in OGRE

Raymond Martin <[email protected]> Wed, 22 Feb 2006 21:10:14 +0000
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
Hi,

> 
> In addition to having UTF-8 in Lush running via a console it is needed in OGRE.
> 
 
> Does OGRE have the requisite facilities in place to do this? it does not seem to
> do it on my system.
> 

Did a little looking and there are a number of functions in X.h, included from X11_driver.c
that are useful. Specifically, Xutf8DrawText, Xutf8DrawString, Xutf8LookupString, 
and so forth.

Another relevant file to include from X is Xft.h, it is in /usr/X11R6/include/X11/Xft 
on my system. This might be included already, not sure.

It has all the defines and prototypes needed for using freetype (and fontconfig
for finding/configuring fonts for applications) and functions for handling Unicode/
UTF-8 strings.

Raymond

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642