Re: [Indic-computing-users] Raghu, ttmkfdir and Code2000
Status: Alpha
Brought to you by:
jkoshy
From: Guntupalli K. <kar...@fr...> - 2002-10-12 07:41:04
|
On Sat, 12 Oct 2002 00:02:17 -0700 (PDT) Keyur Shroff <key...@ya...> wrote: > > --- "Tapan S. Parikh" <ta...@ya...> wrote: > > > > How come raghu font doesnt work with ttmkfdir? Is there a > > workaround to use this font in X? > > > > For now I am using Code2000, but it doesnt look nearly as nice... > > ;( > > Unfortunately, ttmkfdir can't generate proper XLFD name for Unicode > encoded fonts that fall under Indic range. New programs are being > written which will eventually replace ttmkfdir. Meanwhile you can > put the following XLFD name for Raghu in your fonts.scale file: > > raghu.ttf -NCST-Raghindi-medium-r-normal--0-0-0-0-p-0-iso10646-1 > But mangal & other XP fonts work with ttmkfdir from X 4.2 , There is probably some bug in it. There was a report on gtk-i18n list on raghu having a 0 lenth kern table ( I donno if that affects ttmkfdir ). > > > > My next question is that I am now trying to display Unicode Hindi > > and Tamil in my GTK-2 application, but Im not sure how can I have > > it find the default fonts for those ta_IN and hi_IN locales? Does > > someone have an example of a gtkrc file that I should put > > somewhere? > > Look for files in /etc/gtk (or /etc/gnome) directory. For newer > version of gtk it may be in /etc/gtk-2 directory. Those files are > having name > gtkrc.[locale_name]. For example, gtkrc.hi_IN or gtkrc.ta_IN. You > can > specify fontset to be used for a particular locale. Following is an > example: > > # This is sample gtkrc file for hi_IN locale > > style "gtk-default-hi_IN" { > fontset = > "raghu, \ > -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859- > 1" > } > class "GtkWidget" style "gtk-default-hi_IN" > > # end of file > This was with 8 bit fonts, with gtk2 we dont need to do all this stuff, or putting it properly one should not do this stuff, as this sets the font for all widgets, if your application is to be used for many languages at same time, setting font explicitly is not good, unless ur font caters to all languages expected to be used. If ur app is still pre gtk2 then certainly this is the proper way to set font. Regards, Karunakar |