nanogui: Thread: TTF fonts


[<<] [<] Page 1 of 1 [>] [>>]
Subject: TTF fonts
From: Vidya Srinivas ####@####.####
Date: 12 Feb 2003 10:31:13 -0000
Message-Id: <03021215590301.30072@vidya>

Hi,

  We are using Freetype font support for our project. Actually, we are 
cross-compiling using ppc_405-gcc(PowerPC) compiler. We were earlier using 
win32APIs. We had enabled Freetype support in config file and in the 
application file, we had mentioned the path name in CreateFont function as 
"/usr/local/arialb.ttf". We were able to use different language ttf fonts in 
this way. But the same thing is not working for Nanox. Why is this?

We have given :

fontid = GrCreateFont("/usr/local/K010.ttf",20,NULL);
GrSetGCFont(gc,fontid);
But we are not able to display this hindi fonts.

We have actually cross-compiled the freetype library for our purpose.

Are we going wrong anywhere? So, if we want to use other ttf fonts for 
different languages, what is the method that we have to follow?

Please reply at the earliest.

Regards,
-- 
VIDYA.S
Sr. Design Engineer
EMBEDDED SOFTWARE GROUP
BPL TELECOM
BANGALORE
Ph- 6589080 extn. 2005
Subject: Re: [nanogui] TTF fonts
From: ####@####.####
Date: 12 Feb 2003 11:43:25 -0000
Message-Id: <OFD90A6CA3.9907A6FD-ON80256CCB.003DA67D-80256CCB.003F9180@diamond.philips.com>

Hi,

>But the same thing is not working for Nanox. Why is this?
>But we are not able to display this hindi fonts.
>Please reply at the earliest.

There's a bug: the network code for GrGetGCTextSize() does not work with multibyte characters.

Workarounds: set LINK_APP_INTO_SERVER=Y, don't use GrGetGCTextSize(), or stick to ASCII.

I'll post a patch soon (probably later this week)...

Kind regards,

Jon Foster
--
E-mail: ####@####.####


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


Powered by ezmlm-browse 0.20.