Re: Porting Gtk apps to maemo: howto change default font size

2007-11-30 Thread Florian Boor
Hi,

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.

Greetings

Florian

-- 
The dream of yesterday  Florian Boor
is the hope of todayTel: +49 271-771091-15
and the reality of tomorrow.Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904][EMAIL PROTECTED]

1D78 2D4D 6C53 1CA4 5588  D07B A8E7 940C 25B7 9A76
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Porting Gtk apps to maemo: howto change default font size

2007-11-30 Thread Nicolas
Thanks for the tip Florian about using the small markup, it will be
usefull for me.

Regarding gFTP I have choosed to reduce the font size globally in order to
keep everything on one screen. I have searched how to apply a different
style to all the widgets (eg: use osso-SmallFont instead of osso-SystemFont)
but failed. So the method I used is to call:
gtk_rc_parse_string(style 'osso-SystemFont' { font_name = 'Nokia Sans
11.625' });

I think the soft remains very useable with a stylus (but forget about using
the finger). But of course I'll consider users feedbacks.

Here is a screenshot:
http://www.screenshots.cc/view_image/847fe1309/shot-2007-11-28-13-46-15.png

I have posted a message regarding having access to one of the maemo extra
repositories in order to upload the packages (I don't want to open yet
another repository).

Nicolas.

On Nov 30, 2007 12:58 PM, Florian Boor [EMAIL PROTECTED]
wrote:

 Hi,

 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.

 Greetings

 Florian

 --
 The dream of yesterday  Florian Boor
 is the hope of todayTel: +49 271-771091-15
 and the reality of tomorrow.Fax: +49 271-771091-19
 [Robert Hutchings Goddard, 1904][EMAIL PROTECTED]

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

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Porting Gtk apps to maemo: howto change default font size

2007-11-23 Thread Ross Burton
On Fri, 2007-11-23 at 19:24 +0100, Nicolas wrote:
 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)? 

The general answer is fix the app: the built-in file manager manages
to be use usable with the font size so why shouldn't pcmanfm or gftp?
If the font was drastically smaller, it wouldn't be possible to use the
device outside of an office, so what's the point?

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Porting Gtk apps to maemo: howto change default font size

2007-11-23 Thread Nicolas
Hi,

I am playing with the maemo Chinook SDK and made some tests to see how easy
it was to port Gtk apps to maemo (fairly easy in fact!).

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)?

Regards,
Nicolas.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers