Re: [Indic-computing-users] Raghu, ttmkfdir and Code2000
Status: Alpha
Brought to you by:
jkoshy
|
From: Keyur S. <key...@ya...> - 2002-10-12 07:57:59
|
--- Guntupalli Karunakar <kar...@fr...> wrote:
> >
> > 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 ).
Having a 0 length kern table should not be considered a bug in the font. I
saw those messages on gtk-i18n list. ttmkfdir uses FreeType and there is an
assumption in FreeType that 0 length table is invalid. They planned to
correct it and I recall that someone suggested patch in FreeType. I don't
know whether they have applied the patch or not.
> >
> > # 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.
This can also be used with 16-bit fonts (as you can see name of Raghu
there). And you can even use different styles with different widgets.
Certainly, in this example, it will set the fontset for all widgets; but
you can specify different styles and bind them with different widget
classes. However I have not closely looked at new font settings in Gtk2.
Can you tell us how to set fonts in Gtk2? Is it in xft/ft2 related
directory?
-Keyur
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
|