Re: gdk_fontset_load and font descriptor
- From: Havoc Pennington <hp redhat com>
- To: Christian Marillat <marillat christian wanadoo fr>
- Cc: gnome-devel-list gnome org
- Subject: Re: gdk_fontset_load and font descriptor
- Date: 10 Jan 2002 14:13:41 -0500
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]