Page 1 of 1
Changing the font for w/s and tabs
Posted: Fri Oct 23, 2009 4:13 pm
by chaz
Can the font for the workspace tree and tabs be set. It is ridiculously large on my system.
Re: Changing the font for w/s and tabs
Posted: Fri Oct 23, 2009 4:58 pm
by eranif
Those fonts are the default GUI font of your machine...
Btw, Which OS? on Windows you can change them by right clicking on the desktop -> Settings
Eran
Re: Changing the font for w/s and tabs
Posted: Tue Nov 03, 2009 11:12 pm
by chaz
Red Hat w/gnome
See the attached screenshot and the difference between the codelite gui, the desktop icon bar and firefox menus.
Thanks for the response!
Re: Changing the font for w/s and tabs
Posted: Wed Nov 04, 2009 12:13 am
by eranif
chaz wrote:Red Hat w/gnome
See the attached screenshot and the difference between the codelite gui, the desktop icon bar and firefox menus.
Thanks for the response!
codelite does not set any font, this is the GUI font returned by the OS to the application.
Moreover, lets assume that we could change the font on the tabs which I can control, the Menu Bar is really not something that codelite does, it is set by wxWidgets
I still thinks its a system settings, but I will need to check with some of my Linux Gurus
EDIT: I just tried to modify the fonts on my Linux box from System -> Appearance -> Fonts, (I modified the 'Application Font') and it did worked out for me)
Eran
Re: Changing the font for w/s and tabs
Posted: Wed Nov 04, 2009 6:02 pm
by chaz
Well I did build codelite and wxWidgets from source, but I did not modify anything. Perhaps it's my old RedHat version? Any idea where I could add a call to set the font once so wxWidgets uses an appropriate size?
Re: Changing the font for w/s and tabs
Posted: Wed Nov 04, 2009 8:17 pm
by eranif
Its probably has to do with your RH version. Since I did check it on various Linux distros and it is working for all of them
For the tabs, have a look at 'custom_tab.cpp' look in the OnPaint method.
For the menu bar, have a look at frame.cpp, line 671
The menubar with all the menus is loaded from XML file.
The call to wxXmlResource::Get()->LoadMenuBar(wxT("main_menu")) returns wxMenuBar, which inherits from wxWindow and thus has access to SetFont() method, however I dont think it is the correct thing to do. I really think its something with your OS
Eran
Re: Changing the font for w/s and tabs
Posted: Wed Nov 04, 2009 8:36 pm
by chaz
Thank you for looking at this.
I was able to solve the problem by building gtk+ from src, then rebuilding wxWidgets, then codelite and it works like it is supposed to.
Sorry for the goose chase.
BTW, love using codelite, compared to others like slickedit, eclipse.