|change font for all widgets in an application [message #460631]
||Thu, 01 September 2005 22:37
Originally posted by: gilbert.pilz.sbc-guesstherest.net|
I'm using SWT 3.1 on WinXP. For whatever reason the default font seems
to be Courier-10. I would like all of the widgets in my application to
have a different font than this. Right now I can't see a better way of
doing this than to call setFont() on every single widget that I create.
This is a bit of a PITA and I was wondering if there was a way to change
the default font at a global level?
|Re: change font for all widgets in an application [message #460805 is a reply to message #460803]
||Wed, 07 September 2005 11:50
Registered: July 2009
> This is the same problem with most web pages. They assume that 'everyone |
> wants to see stuff in 10pt font' and hard-code it in CSS (or, if they're
> really old, HTML). When it's viewed on a large (or high-res) monitor,
> the fonts can shrink down to unintelligible sizes.
The same is true for SWT with the implicit assumption that every developer
wants its app look native. I totally agree that hardcoding is the wrong
way as the context may (will!) change and everything is messed up then.
But in contrast to SWT a web page does not forbit to do it your way.
> So Eclipse is pulling out the OS stuff, and as such, looks like every
> other application on your system. If you want to change what Eclipse
> looks like, change the look and feel of your system.
I am not religious about all this, I rather see it pragmaticly and in the
light of my current task. The computer science is money driven like no
other science and so the word of a manager is more worth than of a simple
developer. The manager says buttons should look orange so what do I do? In
general, as a programmer, I want to have control over my application to
fullfill my wishes and the dope induced visions of my product manager.
SetBackground is insufficiant as the hole area is colored and the round
corners arent taken into account. And changing the system defaults is not
acceptable neither by usability standards nor conceptional as there sould
be other ways to paint your walls than detonating a color bucket in your
room. I really only look for a way to get my task done and SWT isnt
So, I stop complaining now.
Powered by FUDForum
. Page generated in 0.01659 seconds