Displaying Asian language with jit.gl.text2D/3D ?

williamshome's icon

Hi all,

Anybody know if it is possible to display asian language, e.g. chinese, with jit.gl.text2D or jit.gl.text3D ?

It displays gargages if I directly give it a message "text 中文" and I can find no option on changing code page, e.g. Unicode.

Thanks.

yours,
William

yair reshef's icon

i encountered a similar problem when displaying Hebrew char, i got it by
using a special type of fonts called Xfonts, look for information about
those in your language.
i think the google name is bitmap fonts, xfont just give tons of linux
specific stuff.
btw, they dont scale very well so you know.
have fun

2006/10/17, williamshome :
>
>
> Hi all,
>
> Anybody know if it is possible to display asian language, e.g. chinese,
> with jit.gl.text2D or jit.gl.text3D ?
>
> It displays gargages if I directly give it a message "text
> 中文" and I can find no option on changing code page, e.g.
> Unicode.
>
> Thanks.
>
> yours,
> William
>

williamshome's icon

Hi,

Thanks for your tip. I'll have a look of it right now.

After more testing, I find that using jit.lcd can display chinese
characters, but only in a fixed size and not anti-alias.

What is the different between jit.lcd and jit.gl.text2d/3d on text rendering
?

yours,
William

On 10/18/06, yair reshef wrote:
>
> i encountered a similar problem when displaying Hebrew char, i got it by
> using a special type of fonts called Xfonts, look for information about
> those in your language.
> i think the google name is bitmap fonts, xfont just give tons of linux
> specific stuff.
> btw, they dont scale very well so you know.
> have fun
>
>
> 2006/10/17, williamshome < williamshome@gmail.com>:
> >
> >
> > Hi all,
> >
> > Anybody know if it is possible to display asian language, e.g. chinese,
> > with jit.gl.text2D or jit.gl.text3D ?
> >
> > It displays gargages if I directly give it a message "text
> > 中文" and I can find no option on changing code page, e.g.
> > Unicode.
> >
> > Thanks.
> >
> > yours,
> > William
> >
>
>
>
>
>
>

randall jones's icon

Hi,

It's important to mention which operation system you are using.
Since there is (or was, at the time of writing) no good cross-
platform API for writing such stuff, the jit.gl.text2d and -3d
objects use different code on Mac and Windows, resulting in a few
differences.

Both of the Jitter objects use the ATSUI API on Mac OS. This allows
one to get the curves directly for any character set. The 2d object
uses the Mac OS routines to draw the characters to textures. The 3d
object uses the curves (and GL tesselators) to make vector drawings
in OpenGL. When writing the objects I tested the different character
sets by copying and pasting text in Japanese, Chinese etc. to a
message box, then sending that text to the objects. So if you can
enter the text into a message box on Mac OS, you should be OK. Your
text will appear as 汉字, not Unicode numbers. The text
representation is Unicode. I don't know too much about the Windows
ports.

-Randy

On Oct 18, 2006, at 5:33 AM, William Wong wrote:

> Hi,
>
> Thanks for your tip. I'll have a look of it right now.
>
> After more testing, I find that using jit.lcd can display chinese
> characters, but only in a fixed size and not anti-alias.
>
> What is the different between jit.lcd and jit.gl.text2d/3d on text
> rendering ?
>
> yours,
> William
>
>
> On 10/18/06, yair reshef wrote:
> i encountered a similar problem when displaying Hebrew char, i got
> it by using a special type of fonts called Xfonts, look for
> information about those in your language.
> i think the google name is bitmap fonts, xfont just give tons of
> linux specific stuff.
> btw, they dont scale very well so you know.
> have fun
>
>
> 2006/10/17, williamshome < williamshome@gmail.com>:
>
> Hi all,
>
> Anybody know if it is possible to display asian language, e.g.
> chinese, with jit.gl.text2D or jit.gl.text3D ?
>
> It displays gargages if I directly give it a message "text
> 中文" and I can find no option on changing code page,
> e.g. Unicode.
>
> Thanks.
>
> yours,
> William
>
>
>
>
>
>

williamshome's icon