Re: UTF-8 in OGRE : DONE

Leon Bottou <[email protected]> Fri, 24 Feb 2006 10:02:52 -0500
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
On Thursday 23 February 2006 08:32 pm, Raymond Martin wrote:
> Recompiled from CVS, but it does not seem to work for me. 
> Everything that is required is installed.

You need to rerun 'configure' and scan the output for the test for library Xft.
Should be near the top.

In fact you can also type on the command line
% pkg-config --cflags xft  
% pkg-config --libs xft
If you get a positive answer, you are set.
Otherwise you need to install the development packages for libxft
and its dependencies.

On debian, you just do  apt-get install libxft-dev.
I also have a redhat fc3 machine, the package is part of xorg-x11-devel-6.8.1-12.

My testing script depends on the pkg-config tool
because this one is too hard to get right otherwise.
You need fontconfig, render, etc...

> Could I have missed something? There's nothing new that 
> needs to be done in the end user code for an ogre window, is there?

That is done already!
Once you have compiled, you can type  (x11-fontname "times-18")
If the answer is something like ":family=times:pixelsize=18" you are done.
Otherwise you get something like "-adobe-times-...-*-*-iso8859-1" and no.

To print japanese you need to select the proper font anyway.
With the latest CVS you can simply type (font ":lang=ja:pixelsize=16") 
and it should find one if you have one installed.

- L.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642