nanogui: Added Multibyte text output with truetypefont support to uWin.
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"", 12, NULL);
>chi_font_b = GrCreateFont ("gbsn00lp"", 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