nanogui: Asian Fonts In Nano-X


Previous by date: 21 Oct 2005 18:53:26 +0100 Re: Server don't free memory from images after releasing it with GrFreeImage, Greg Haerr
Next by date: 21 Oct 2005 18:53:26 +0100 Re: Asian Fonts In Nano-X, Greg Haerr
Previous in thread:
Next in thread: 21 Oct 2005 18:53:26 +0100 Re: Asian Fonts In Nano-X, Greg Haerr

Subject: Asian Fonts In Nano-X
From: Gil Glass ####@####.####
Date: 21 Oct 2005 18:53:26 +0100
Message-Id: <OF7908533A.F8C12F91-ON852570A1.0061723A-852570A1.00623A64@acterna.com>

Hello,

I am trying to incorporate internationalization (i18n) in my project and I 
need to support many languages including several European languages as 
well as Chinese, Korean, and Japanese.  I thought that if I used UTF-8 and 
selected the correct font that I would be good to go.  However, I've been 
looking over the t1demo.c application and it has me all confused.  I'm 
wondering whether anyone out there can tell me if I can do something like 
the following:

// Display in English.
fontid = GrCreateFont("Arial.ttf", 0, NULL);
GrText(..., "Hello, world", ..., GR_TFUTF8);

// Display in Chinese.
fontid = GrCreateFont("(one of the Chinese fonts)", 0, NULL);
GrText(..., "(whatever UTF-8 values make sense)", ..., GR_TFUTF8);

// Display in Japanese.
fontid = GrCreateFont("(one of the Japanese fonts)", 0, NULL);
GrText(..., "(whatever UTF-8 values make sense)", ..., GR_TFUTF8);

I don't really understand the differences between all the various Asian 
fonts that come with Nano-X.  Thanks!

Cheers,
Gil Glass
Telecom Field Services
JDSU
Germantown, MD, USA
+1-240-404-2551

Previous by date: 21 Oct 2005 18:53:26 +0100 Re: Server don't free memory from images after releasing it with GrFreeImage, Greg Haerr
Next by date: 21 Oct 2005 18:53:26 +0100 Re: Asian Fonts In Nano-X, Greg Haerr
Previous in thread:
Next in thread: 21 Oct 2005 18:53:26 +0100 Re: Asian Fonts In Nano-X, Greg Haerr


Powered by ezmlm-browse 0.20.