GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Windows 'Large Fonts' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Windows Watch "Windows New topic
Author

Windows 'Large Fonts'

Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
Hi all,

Apologies if this has come up before, I tried searching, but didn't really know what to search for!

In a nutshell, we have a (sort of) customer who has 'Large Fonts' switched on in his Windows appearance settings (or possibly 'Extra Large Fonts' - not sure), the upshot being that he's forever reporting missing components, etc, because using pack() on dialogs doesn't take his fonts into account, so the dialog is too small, and components don't get drawn.

The only solution I've found so far is to specify the dialogs' sizes, at about 15% bigger than they 'need' to be, so they look right to him. This has the obvious negative effect that the many other users who don't have large fonts switched on see nasty looking grey areas and unnecessarily large dialog boxes. Since we've worked hard on a nice-looking GUI, this is very disappointing indeed. Has anyone experienced the same problem and/or found a better solution to the problem?
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
Just set the font manually (Call setFont() on the components)! Making the font sizes fixed will make sure that they do not grow out of proportion. Your client will have to buy those new glasses then however!
 
GeeCON Prague 2014
 
subject: Windows 'Large Fonts'