JDK-6487767 : REGRESSION:Problems with printing and Landscape on Windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0,6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2006-10-30
  • Updated: 2010-04-26
  • Resolved: 2006-10-30
Related Reports
Duplicate :  
Description
J2SE Version (please include all output from java -version flag):
 java version "1.6.0-rc"
 Java(TM) SE Runtime Environment (build 1.6.0-rc-b103)
 Java HotSpot(TM) Client VM (build 1.6.0-rc-b103, mixed mode)


Does this problem occur on J2SE 1.3, 1.4.x or 1.5?  Yes / No (pick one)
 No.

Operating System Configuration Information (be specific):
  Windows

Bug Description:
  A regression with JDK 1.6. The problem is releated to landscape and complex 
  Graphics transformation on Windows. 
 
  The problem occur only if we receive an instance of sun.print.ProxyGraphics2D 
  as Graphics. If we receive an instance sun.awt.windows.WPathGraphics then all
  print ok. Also it seems that the bug has the follow conditions:
     * Java 1.6
     * drawString
     * landscape printing
     * raster printing
     * large Fonts


Steps to Reproduce (be specific):
  You can start it with:
  java  -cp TestPrinterJob.jar TestPrinterJob or
  java PrinterJobTest
 
  After you start you see viewer with a single page with a chart. Click on the print
  button in the toolbar and select a printer. Then you will see the output on the
  printer.
 
  Results:
  With Java 1.4.x and Java 1.5.x the output is ok. With Java 1.6 with different 
  builds some text is wrong.

    * Some text is upside down and wrong placed.
    * Other text is missing

Comments
EVALUATION This is caused by bug 6479365:Combining negative scale and negative shear in Font Transform produced incorrect results in JDK 6 Its not printing specific - its really a bug in the font rasteriser - but printing hits if 1) using something that triggers printing to delegate to the same code on screen, and 2) the orientation is landscape which makes the transformation have the properties that trigger this bug. I confirmed that this problem started appearing in b77 when 6479365 was introduced and is gone with the fix to that bug. Closing as a duplicate.
30-10-2006

EVALUATION There's a problem with the attached files - no files found in the archive. Please re-attach files. Marking incomplete.
30-10-2006