GTKMan Font Size
Posted: 26. Sep 2011, 08:24
A convenient enhancement to GTKMan, Salix's manpage reader, would be the ability to select the font size.
Currently the system 'monospace' font family is used. In Salix Fluxbox 13.37 I've yet to find a way to configure the system's default font size. As a first try, around line 299 in the /usr/bin/gtkman python script, this patch works for me:
YMMV for the particular font size and, of course, an interactive font selection dialog might be the best long-term solution.
Meanwhile it might be quicker to add logic to check the config file for a [Font] section and, if present, use the settings found there. Then users could manually edit ~/.config/gtkman instead of hacking the code itself. Is there a more appropriate (system-wide) solution?
If anyone else is interested, I'd be willing to take on the task, unless the devs have the time and energy.
jayseye
Currently the system 'monospace' font family is used. In Salix Fluxbox 13.37 I've yet to find a way to configure the system's default font size. As a first try, around line 299 in the /usr/bin/gtkman python script, this patch works for me:
Code: Select all
- self.textview_manpage.modify_font(pango.FontDescription('monospace'))
+ self.textview_manpage.modify_font(pango.FontDescription('monospace 14'))
Meanwhile it might be quicker to add logic to check the config file for a [Font] section and, if present, use the settings found there. Then users could manually edit ~/.config/gtkman instead of hacking the code itself. Is there a more appropriate (system-wide) solution?
If anyone else is interested, I'd be willing to take on the task, unless the devs have the time and energy.
jayseye