[maemo-developers] Porting Gtk apps to maemo: howto change default font size

From: Florian Boor florian.boor at kernelconcepts.de
Date: Fri Nov 30 13:58:45 EET 2007

Nicolas schrieb:
> I have compiled gFTP which is a Gtk FTP client, but the UI interface has
> many things to display, and the default font size is too big to be
> usable. Same problem with PcManFM which is a lightweight Gtk filemanager.
> Question: is there an easy way to customize font size for specific
> applications? (I saw the gtkrc file, but I don't want to mess with the
> whole system theme). Or should I patch the Gtk code to change the font
> size inside the application (I have no experience with Gtk, but I guess
> this should be fairly easy)?

that's a quite common problem but reducing the font size is not really what you
want to do in most cases. Just keep in mind that these user interfaces were
designed for devices with much bigger screens. The high screen resolution of the
 tablets of course make it possible to reduce the font size, but that's not
necessarily good for usability.
You should take a look at the user interface implementation and check what you
can do to reduce the amount of space you need. (Make it simpler, reduce the
amount of displayed information...)  If there are areas where it really makes
sense to reduce the font size you can use a markup switch (<small>) to make it
smaller then the default size.



The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        florian.boor at kernelconcepts.de

1D78 2D4D 6C53 1CA4 5588  D07B A8E7 940C 25B7 9A76

More information about the maemo-developers mailing list