nanogui: Some questions about nano-gui?


Previous by date: 17 Apr 2000 11:20:00 -0000 Microwindows now actually useful for LinuxCE devices, Greg Haerr
Next by date: 17 Apr 2000 11:20:00 -0000 Re: QNX opens up Photon GUI code, Robert Findlay
Previous in thread: 17 Apr 2000 11:20:00 -0000 Re: Some questions about nano-gui?, ¹ùÇ¿
Next in thread: 17 Apr 2000 11:20:00 -0000 Re: Some questions about nano-gui?, ¹ùÇ¿

Subject: Re: Some questions about nano-gui?
From: Martin Jolicoeur ####@####.####
Date: 17 Apr 2000 11:20:00 -0000
Message-Id: <38FAE2ED.1A99DEA8@visuaide.com>

¹ùÇ¿ wrote:

> Mr. Jolicoeur,
> > For your information, I've been able to display japanese with the truetype font support using the msmincho.ttf from microsoft and the utf-8 support ...
>
>     How do you do that? I'm so interest it. I'm a beginner and need help cordially.
>
> Best regards,
> Guo

First, you need to have a truetype font file with the language you want (If you have a chinese version of windows, you probably already have many in the
/windows/fonts directory ). Personnally, I tested with the msmincho.ttf from microsoft (It has hiragana, katakana and kanji fonts), I think I got it from
the word 97 cdrom, don't remember. (Or you can download the far east package somewhere on the microsoft site)

Secondly, you need to generate a text file in utf-8 or unicode-16 format. Here's what I did: you type your text in say, word 97 or word 2000, in chinese.
then you save your file in the format "coded text". Word 97 can save only in unicode-16 format but Word 2000 can save in utf-8, utf-7, unicode-16,
unicode-32 , .... (it will ask you which kind of coding you want once you say you want to save as "coded text")

Then, you take as example the demo program ftdemo.c in /demos/nanox/, rewrite it for your needs replacing the file "ftdemo.txt" with your previous text and
the font file with your selected one. For the seventh argument of the GrText call, you or with GR_TFUTF8 (if your text is in utf-8) or GR_TFUC16 (if your
text is in unicode-16) ....

Regards,

Martin Jolicoeur
GVT Project
####@####.####


Previous by date: 17 Apr 2000 11:20:00 -0000 Microwindows now actually useful for LinuxCE devices, Greg Haerr
Next by date: 17 Apr 2000 11:20:00 -0000 Re: QNX opens up Photon GUI code, Robert Findlay
Previous in thread: 17 Apr 2000 11:20:00 -0000 Re: Some questions about nano-gui?, ¹ùÇ¿
Next in thread: 17 Apr 2000 11:20:00 -0000 Re: Some questions about nano-gui?, ¹ùÇ¿


Powered by ezmlm-browse 0.20.