JDK-4775284 : Suse 8.0 Linux : Incorrect metrics for Java fonts at high resolutions
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.1_01
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-11-07
  • Updated: 2002-11-07
  • Resolved: 2002-11-07
Related Reports
Duplicate :  
Description
The fonts delivered by SUN as .../jre/lib/fonts/* and used when
employing the standard .../jre/lib/fonts.properties only work with
75dpi resolution when using an X-Server that really relies on the font
height information inside the font as Xfree86 4.2.x does. (c.f. XFree
docs).  Fonts heights reporte are just wrong when display resolution
is greater then 75dpi.

Problem reproduction:
=====================

Environment:
------------

OS      : Linux,
         
          Linux ls3613 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 
unknown

Distribution: SuSE 8.0

X11     : Xfree86 4.2.x

          XFree86 Version 4.2.0 / X Window System
          (protocol Version 11, revision 0, vendor release 6600)
          Release Date: 23 January 2002
          If the server is older than 6-12 months, or if your card is
          newer than the above date, look for a newer version before
          reporting problems.  (See http://www.XFree86.Org/)

Java VM : SUN 1.4.1_01

          Java(TM) 2 Runtime Environment, Standard Edition (build 
1.4.1_01-b01)
          Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

boot into console usually runlevel 3 no X.

start a X-server with 106 dpi resolution

startx -- :0 -dpi 106 &

start FontRes.class
java FontRes
(see 75dpi.gif)
start FontTest and see what font height is reported.
java FontTest

switch back to the console

start a X-server with 75 dpi resolution

startx -- :1 -dpi 75 &

start FontRes.class
java FontRes
(see 106dpi.gif)


compare the different font cell heights and the overall appearance.
also have a look in the font heights reported by FontTest.java

Please have a look for the test case in the attached zip file.
The zip file features as well 2 screen shots.



Comments
PUBLIC COMMENTS The fonts delivered by SUN as .../jre/lib/fonts/* and used when employing the standard .../jre/lib/fonts.properties only work with 75dpi resolution when using an X-Server that really relies on the font height information inside the font as Xfree86 4.2.x does. (c.f. XFree docs). Fonts heights reporte are just wrong when display resolution is greater then 75dpi.
10-06-2004

EVALUATION This looks like its a duplicate of 4759380. That bug hasn't been reproduced here, and I can't reproduce any problems here with the test case from this report either. The common factor between the two bug reports is Suse 8.0 although its not at all apparent how its relevant since there's no dependence in JDK for Linux on the Xserver in order to get font metrics. Its completely independent of X11. ###@###.### 2002-11-07 ============================
07-11-2002