Anyone know how to get Geany to use a bitmap X11 font like -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 ?
I'm using IceWM (no Gnome) with xorg.
Maybe something to do with a ~/.gtkrc-2.0 file... possibly something like:
=== snip === style "geany" { font="-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1" } widget_class "*GtkText" style "text"
=== /snip ===
? Though, I tried that and it didn't work.
I think the right GTK docs on this might be http://www.gtk.org/tutorial/x2138.html ...
Or, maybe, is there a configure option to allow it access to bitmap fonts? I didn't see one with `./configure --help` though.
Thanks, ---John
On Wed, 2 May 2007 16:33:18 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
Anyone know how to get Geany to use a bitmap X11 font like -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 ?
it depends ;-). For Geany generally modifying ~/.gtkrc-2.0 should work. Somewhere in the gaim FAQs it is described, if I remember correctly. For the editor widget, Scintilla is responsible for font handling. You only can specify Pango fonts(Gdk fonts would also be possible but probably you don't want to use them).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 5/3/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 2 May 2007 16:33:18 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
Anyone know how to get Geany to use a bitmap X11 font like -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 ?
it depends ;-). For Geany generally modifying ~/.gtkrc-2.0 should work. Somewhere in the gaim FAQs it is described, if I remember correctly.
Yes, you're remembering correctly, though now it's called "Pidgin" instead of Gaim. I'd found it googling (http://www.pidgin.im/faq.php#q16), but wasn't able to figure out the exact incantation to get it to work for Geany.
For the editor widget, Scintilla is responsible for font handling. You only can specify Pango fonts(Gdk fonts would also be possible but probably you don't want to use them).
Ok, thanks.
On Thu, 3 May 2007 12:41:34 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 5/3/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 2 May 2007 16:33:18 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
Anyone know how to get Geany to use a bitmap X11 font like -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 ?
it depends ;-). For Geany generally modifying ~/.gtkrc-2.0 should work. Somewhere in the gaim FAQs it is described, if I remember correctly.
Yes, you're remembering correctly, though now it's called "Pidgin"
Opps, now I remember again ;-).
(http://www.pidgin.im/faq.php#q16), but wasn't able to figure out the exact incantation to get it to work for Geany.
Well, I'm not exactly sure how the widget names used in a .gtkrc-2.0 file are matched with the real widgets in an application(I should read the docs to find out) but it is quite easy if you want to do it for all GTK applications at once: ------snip------- style "my_style" { font_name="Bitstream Very Sans 7" } widget_class "*" style "my_style" ------snip------- this is the first part of my .gtkrc-2.0. You could replace widget_class ... by widget "geany*" style "my_style" but as I told I'm not sure what we have to do within Geany to let GTK recognise the widgets. Any pointers are welcome.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Thu, May 03, 2007 at 06:52:48PM +0200, Enrico Tröger wrote:
Well, I'm not exactly sure how the widget names used in a .gtkrc-2.0 file are matched with the real widgets in an application(I should read the docs to find out) but it is quite easy if you want to do it for all GTK applications at once: ------snip------- style "my_style" { font_name="Bitstream Very Sans 7" } widget_class "*" style "my_style" ------snip------- this is the first part of my .gtkrc-2.0. You could replace widget_class ... by widget "geany*" style "my_style" but as I told I'm not sure what we have to do within Geany to let GTK recognise the widgets. Any pointers are welcome.
AIUI, you should use gtk_widget_set_name() for that for the main GtkWindow, that should do it.
On Thu, 3 May 2007 19:39:36 -0300, Damián Viano geany@damianv.com.ar wrote:
On Thu, May 03, 2007 at 06:52:48PM +0200, Enrico Tröger wrote:
Well, I'm not exactly sure how the widget names used in a .gtkrc-2.0 file are matched with the real widgets in an application(I should read the docs to find out) but it is quite easy if you want to do it for all GTK applications at once: ------snip------- style "my_style" { font_name="Bitstream Very Sans 7" } widget_class "*" style "my_style" ------snip------- this is the first part of my .gtkrc-2.0. You could replace widget_class ... by widget "geany*" style "my_style" but as I told I'm not sure what we have to do within Geany to let GTK recognise the widgets. Any pointers are welcome.
AIUI, you should use gtk_widget_set_name() for that for the main GtkWindow, that should do it.
Thanks. I didn't expect that it is so easy ;-). But unfortunately, it is not so easy, too. The style(only tried to change the font) is only applied on the main menu but not on the submenus but I will have a look at this next week and hopefully will find a way to get it working properly.
At the moment(SVN r1503) styles for the main window and for the preferences dialog can be set. More widgets will follow soon.
I tried to document this a bit on http://geany.uvena.de/manual/ch03s03.html#general_userstyles. But probably it still can be improved ;-).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Fri, 4 May 2007 17:38:39 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 3 May 2007 19:39:36 -0300, Damián Viano geany@damianv.com.ar wrote:
On Thu, May 03, 2007 at 06:52:48PM +0200, Enrico Tröger wrote:
Well, I'm not exactly sure how the widget names used in a .gtkrc-2.0 file are matched with the real widgets in an application(I should read the docs to find out) but it is quite easy if you want to do it for all GTK applications at once: ------snip------- style "my_style" { font_name="Bitstream Very Sans 7" } widget_class "*" style "my_style" ------snip------- this is the first part of my .gtkrc-2.0. You could replace widget_class ... by widget "geany*" style "my_style" but as I told I'm not sure what we have to do within Geany to let GTK recognise the widgets. Any pointers are welcome.
AIUI, you should use gtk_widget_set_name() for that for the main GtkWindow, that should do it.
Thanks. I didn't expect that it is so easy ;-). But unfortunately, it is not so easy, too. The style(only tried to change the font) is only applied on the main menu but not on the submenus but I will have a look at this next week and hopefully will find a way to get it working properly.
At the moment(SVN r1503) styles for the main window and for the preferences dialog can be set. More widgets will follow soon.
I just added widget names to (hopefully all) dialogs used in Geany. Unfortunately, I still didn't find a way to get the menu items of the main file menu, the toolbar menu and the popup menu of the editor widget get styled.
widget "*.*MenuItem*" style "geany_style" would work(if there is a defined style "geany_style") but it would work on all menu items of all GTK apps. widget "Geany*.*MenuItem*" style "geany_style" doesn't work. Anyone any ideas?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key