Re: [Indic-computing-users] Raghu, ttmkfdir and Code2000
Status: Alpha
Brought to you by:
jkoshy
|
From: Tapan S. P. <ta...@ya...> - 2002-10-12 08:12:03
|
Yup, works. At least for code2000 which Im using. I dont see why it
wouldnt work for Raghu also...
I suppose this is an OK solution but it is a bit confusing with all the
difft hooks, Gtk 1.2 vs Gtk 2, no XFT vs XFT 1 vs XFT 2....
How does QT approach all this? Is it using XFT?
On Sat, 12 Oct 2002 13:34:12 +0530
"Tapan S. Parikh" <ta...@ya...> wrote:
>
> It is in /etx/X11/Xftconfig or in ~/.xftconfig. You have to set the
> font families using stuff like...
>
> match
> any family == "sans"
> edit
> family += "raghu";
> size = 11;
>
> or something like that... Im not sure if this is how it will remain
> in Xft2.
>
> Im testing this just now, will let u know how it comes out in 15
> minutes... ;)
>
> -- Tapan
>
>
> On Sat, 12 Oct 2002 00:57:58 -0700 (PDT)
> Keyur Shroff <key...@ya...> wrote:
>
> >
> > --- 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-iso8
> > > > 85 9- 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
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Indic-computing-users mailing list
> > http://indic-computing.sourceforge.net/
> > Ind...@li...
> > https://lists.sourceforge.net/lists/listinfo/indic-computing-users
> > [Other Indic-Computing mailing lists: -devel, -standards, -announce]
>
>
|