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.

Bug 50477 - Win OS default font (Tahoma) is not used in many controls
Summary: Win OS default font (Tahoma) is not used in many controls
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: David Simonek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks: 55480
  Show dependency tree
 
Reported: 2004-10-15 13:06 UTC by David Simonek
Modified: 2008-12-22 18:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch that fixes remaining non-Tahoma fonts on Win and XP L&F. (1.87 KB, patch)
2005-02-24 12:49 UTC, Jan Chalupa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Simonek 2004-10-15 13:06:41 UTC
Windows OS has Tahoma font as default font for
menus, lists and other common controls. Netbeans
should use Tahoma font by default as well.
Comment 1 David Simonek 2004-10-29 14:34:01 UTC
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
Comment 2 Jesse Glick 2004-10-29 14:54:40 UTC
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?
Comment 3 David Simonek 2004-11-01 11:05:20 UTC
eeee...aaa...ehm...uh...yes :-)
Comment 4 David Simonek 2004-11-01 16:12:15 UTC
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
Comment 5 Jan Chalupa 2005-02-24 12:44:05 UTC
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.
Comment 6 Jan Chalupa 2005-02-24 12:49:03 UTC
Created attachment 20499 [details]
Patch that fixes remaining non-Tahoma fonts on Win and XP L&F.
Comment 7 Jan Chalupa 2005-02-24 14:35:26 UTC
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
Comment 8 Jaromir Uhrik 2005-07-14 16:18:17 UTC
Verified.