Re: gdk_fontset_load and font descriptor



Christian Marillat <marillat christian wanadoo fr> writes:
> 
> In some apps I see the font descriptor is gettextized and I think this is a
> bad hack. The second example with a fallback to *-r-* seems more correct
> to me. Then which is the rigth way for the font descriptor ?
> 
> In gnome-core panel/button-widget.c
> 
> font = gdk_fontset_load(_("-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*"));
> 
> And in gnome-about/gnome-about.c
> 
> italicfont = gdk_fontset_load("-adobe-helvetica-medium-o-normal--*-120-*-*-*-*-*-*,*-r-*");
> 

The reason for the gettextize in the font is that often the font given
for English looks really bad in Japanese (and possibly other Asian
languages).

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]