nanogui: Thread: Added Multibyte text output with truetypefont support to uWin.


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Added Multibyte text output with truetypefont support to uWin.
From: ####@####.####
Date: 1 Aug 2001 09:02:58 -0000
Message-Id: <3B67C5D6.5040204@neomuse.com>

at last, I've made a small change and added some codes that Microwindows
can support
Multibyte characters(Korean[EUC-KR, JOHAB, ...], Chinese[BIG5, GZ, HBK,
...],
Japanese[EUC-JP,SHIFT-JIS, ...], and etc.) with loading truetypefonts.
I've test it, and works fine in my environment. the code needs to be
fixed more. (I think so.)
However I would like to know if it is working fine on Big endian machines.
And I wanna know if it runs with glibc 2.2.x version.
I've heard that glibc 2.1.x version has broken multibyte library.

If this interests you, send me a mail and I'll send you a patch.
I need more tests with other machines.

Thanks,
Sang Baek Lee



Subject: Re: Added Multibyte text output with truetypefont support to uWin.
From: ####@####.####
Date: 2 Aug 2001 01:34:59 -0000
Message-Id: <3B68AE53.50908@neomuse.com>

>
>
>Hi Baek,
>
>I also start to work with Chinese (Big5/GB) True Type Fonts by Arphic Technology (It's freely distribute), but I just can see the
>
Can you give me more informations about Chinese TTF by Arphic Techonology?

> "error decoded" fonts on the screen. By the way, should my Chinese TTF to be Unicode? I may confuse on this issue!? Anyway, what's the flag I need to set when calling?
>
you will need to set flags if you going to use various multibyte support.
But you don't need to set the flag, if your using only one multibyte
support.
May be I should add some code to detect the string's encoding automaticaly.

>
>
>Here is the GrCreateFont() call:
>
>chi_font_a = GrCreateFont ("bkai00mp&quot", 12, NULL);
>chi_font_b = GrCreateFont ("gbsn00lp&quot", 24, NULL);
>
>GrSetGCFont (gc, chi_font_a); // Big5 Characters
>GrText (wid, gc, 20, 150, "?wわⓒΞㄴ?^ㅵ?I?}?r톱 12",  -1, GR_TFASCII);
>GrSetGCFont (gc, chi_font_b); // GB Characters
>GrText (wid, gc, 20, 200, "뻑短賈痰櫓亶匡듐黎俚竟 24",  -1, GR_TFASCII);
>
>I think GR_TFASCII is wrong in my case!
>
"GR_TFASCII" will be alright, unless your using various multibyte support.
So, in this case you will need "GR_TFBIG5, GR_TFGBK" of course.

>
>Thank you for your advice!
>
>Regards,
>Jimmy
>

Regards,
Sang Baek

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.