gdk_fontset_load and font descriptor



Hi,

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-*");

Christian



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