definining fontsets in /etc/gtkr/gtkrc.* is a very bad thing



 It looks like fontset concept is actively pushed by gtk developers (the proof
for this is existance of /etc/gtk/gtkrc.* for most languages). I think this is
_very_ bad approach. I think any /etc/gtk/gtkrc.* shouldn't be installed at
all or they should define a safe default for _font_, _not_ _fontset_. First
of all, most files in /etc/gtk/ define several fonts for a given charset.
Let's see gtkrc.ru from gtk-1.3.1:

style "gtk-default-ru" {
       fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-*,\
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -cronyx-helvetica-medium-r-normal--12-*-*-*-*-*-koi8-r,\
                  -*-arial-medium-r-normal--12-*-*-*-*-*-koi8-r"
}
class "GtkWidget" style "gtk-default-ru"

 The last two line for some reason list 2 fonts with the same encoding koi8-r.
 This means that Xlib according to XCreateFontSet(3X) will choose random font
 (at fontset creation) that will be used for strings in koi8-r charset (and
 almost each /etc/gtk/gtkrc.* defines several fonts for the same encoding).
 That's a bad thing. Even if we removed either of two fonts from that fontset,
 that will mean that user will have no way to choose font using  gnome control 
 center! Also, that limits to only given font size and font weight. This
 is true for any language for which exists /etc/gtk/gtkrc.*.

 Since gtk reads /etc/gtkrc/gtkrc.* before ~/.gtkrc (checked), putting default
font  for that language in /etc/gtk/gtkrc.ru will serve two purposes:
1) it will provide well-choosen default font for that language
2) it will allow user to override that default font in his/her ~/.gtkrc using
   gnome control center.

 So, what do you think about all this?

 Best regards,
  -Vlad






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