default gtk+1.2 font does not render umlauts etc. correctly

Bug #59936 reported by Sebastian Brocks
4
Affects Status Importance Assigned to Milestone
gtk+1.2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The defalut gtk+1.2 font does not render umlauts correctly, e.g. in the german-translated version of XMMS. Setting another font via gtkrc.mine, eg. bitstream vera sans works, but users should not have to do that.

Tags: font gtk gtk1.2
Revision history for this message
Obleak (fraser-arkhostings) wrote :

Hi All,

I have some more information about this item and a fix.

A default ubuntu install (I'm using edgy in this example) does not install gtk1.2 by default.
When an application is added (say xmms) that is dependant on gtk1.2, the libgtk1.2-common package gets installed which provides the system defaults

http://packages.ubuntu.com/edgy/misc/libgtk1.2-common

Problems with the defaults are
#1 it uses a font which looks terrible without anti-alising, and is too big
#2 the default style belongs in the 1980's

althought most gtk apps have migrated to gtk2 by now, there's quite a few commercial apps that use gtk1.2 still - and why do we want commercial apps to look so ordinary???

Revision history for this message
Obleak (fraser-arkhostings) wrote :

#1 Details of default font

as ubuntu uses utf8, the font defaults for gtk1.2 come from
/etc/gtk/gtkrc.utf-8

style "default-text" {
       fontset = "-*-arial-medium-r-normal--*-120-*-*-*-*-iso10646-1,\
                  -*-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
}

arial is not installed by default, so gtk reverts to the helvetica font.
plugging in the same attributs into xfontsel we get (see attached image)

Revision history for this message
Obleak (fraser-arkhostings) wrote :

#2 Details of the default style

I don't know about everyone else but to me that grey blocky default theme is just an eyestrain.

Coupled with the larger than usual font the whole effect is a bit amaturish - note how in the attached image the word 'Digital1' in the dropdown menu has been chopped - both the bottom and the end. Also note how the 0.0 1.0 2.0 numbering at the bottom of the image have crept upwards beyond the bar they are in.

Revision history for this message
Obleak (fraser-arkhostings) wrote :

Onto the fix now.

All that needs to be done is

#1 set a default font that
a) is actually installed
b) is the same size as the default gtk2 font
c) looks decent without anti-aliasing

Here are two defaults that look pretty good
-adobe-helvetica-medium-o-normal-­ -10-100-75-75-p-57-iso10646-1
-schumacher-clean-medium-r-normal­ -*-*-120-*-*-c-*-iso10646-1

#2 install a gtk1.2 theme either by including it in the libgtk1.2-common package or making libgtk1.2-common dependant on it.

a) interestingly if I install and run 'gtk-theme-switch' from the cli, by default I have a choice of two gtk themes (which is odd because only Default has been installed) - Default (yurk) and IndustrialTango. Previewing IndustrialTango results in:

Gtk-WARNING **: Unable to locate loadable module in module_path: "libinudustrial.so"

me thinks the gtk-industrial-tango package should have been installed with libgtk1.2!!!
a quick apt-get install gtk-industrial-tango later and we can finally fix up these ugly looking gtk apps

#3 set a system default.
This bit is really easy

simply create a /etc/gtk/gtkrc file and put in it directions for the two different issues.
note this will get overridden by a ~/.gtkrc.mine file so we are not locking users into anything dramatic.
=============================================================
include "/usr/share/themes/IndustrialTango/gtk/gtkrc"

style "default-text" {
fontset = "-adobe-helvetica-medium-o-normal--10-100-75-75-p-57-iso10646-1,\
           -*-r-*-iso10646-1,*"
}

class "*" style "default-text"
=============================================================

save & run any gtk1.2 app - looks a bit better huh???

so in summary here is all that needs to be done to make gtk1.2 apps look decent by default

#1 make the libgtk1.2-common package dependent on the gtk-industrial-tango package (like it should be????)

#2 inlcude the /etc/gtk/gtkrc file as above that we have some sort of a decent system wide default Theme for gtk1.2 apps

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in gtk+1.2:
status: New → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in gtk+1.2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.