JDK-5042381 : Unexpected font size change in Javahelp with Java 1.5
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-05-05
  • Updated: 2004-12-14
  • Resolved: 2004-12-14
Related Reports
Duplicate :  
Relates :  
Description
Using Javahelp (the Javahelp User Guide rendered in the Javahelp demo help viewer) with Java 1.4.2 the side panel and the main rendering panel have the same (or very similar font sizes).

When using Java 1.5 the main rendering area font size is approx 2 pixels larger than the side panel's font size. 

I attached two screenshots about this.

This problem appears in the Sun Java Desktop System's online help that is built using Javahelp. This is the main reason why this bug is logged.

Note that this is unrelated to the look&feel, I see the problem with both the gtk look&feel and the metal look&feel.
###@###.### 2004-05-05

Comments
EVALUATION Name: sh120115 Date: 05/05/2004 Assigning to text. There have been reports of this already. I'm not sure whether this has been fixed, or if the new behavior is now the right behavior. ###@###.### 2004-05-05 ====================================================================== There are two problem here. 1. In JEditorPane we are tying to follow w3c standards on font sizing. See bug 4765271 [Mapping of the CSS length units is incorrect] In 1.5 "12pt" can produce different font sizes depending upon the screen resolution. We need to have it backward compatible. 2. JEditorPane does not support GTK theming. While left part of the windows is tnemed the right one is not. That is might the reason for font size difference. See bugId 5042095 [ GTK+ theming needs to happen for JEditorPane ] I am going to update 5042095 and close this bug as dup of 5042095. ###@###.### 2004-05-05 This is not properly fixed in Java 1.5 delivered into build 24 of JDS Linux. On the left pane (when the gtk look&feel is switched on) the tabs have the same font size and other gtk applications on the desktop. However the font used in the tree widget inside the left pane is way smaller than it should be. Reopening. This fix needs to be backported into Java 1.5. ###@###.### 2004-12-14 11:14:03 GMT This was a mistake. Closing the bug again. ###@###.### 2004-12-14 14:12:01 GMT
14-12-2004