nanogui: Asian Fonts In Nano-X
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