This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Windows OS has Tahoma font as default font for menus, lists and other common controls. Netbeans should use Tahoma font by default as well.
fixed in main trunk: /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winclassic/WindowsLFCustoms.java,v <-- WindowsLFCustoms.java new revision: 1.9; previous revision: 1.8 /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winxp/XPLFCustoms.java,v <-- XPLFCustoms.java new revision: 1.8; previous revision: 1.7
Hele! If that is the default font on some OS then Swing's Windows L&F should be setting that as the default font, meaning this issue cannot be considered closed until there is a filed defect against Swing explaining that it has chosen the wrong font. We want to be able to delete such hacks eventually, don't we?
eeee...aaa...ehm...uh...yes :-)
I found that Swing issue was already filed: 5079742. I added comments to the code so that our workaround can be deleted in future. Checking in winxp/XPLFCustoms.java; /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winxp/XPLFCustoms.java,v <-- XPLFCustoms.java new revision: 1.9; previous revision: 1.8 /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winclassic/WindowsLFCustoms.java,v <-- WindowsLFCustoms.java new revision: 1.10; previous revision: 1.9
Tahoma is still not used in many components where users might expect it. Try to look at the text in tabs, TopComponent titles, property sheets, etc. it's still old MS Sans Serif font. The reason is that 'controlFont' and 'windowTitleFont' are not patched to Tahoma in XPLFCustoms ans WindowsLFCustoms. Will attach a patch that fixes this issue.
Created attachment 20499 [details] Patch that fixes remaining non-Tahoma fonts on Win and XP L&F.
Patch applied. Checking in winclassic/WindowsLFCustoms.java; /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winclassic/WindowsLFCustoms.java,v <-- WindowsLFCustoms.java new revision: 1.13; previous revision: 1.12 Checking in winxp/XPLFCustoms.java; /cvs/core/swing/plaf/src/org/netbeans/swing/plaf/winxp/XPLFCustoms.java,v <-- XPLFCustoms.java new revision: 1.12; previous revision: 1.11
Verified.