JDK-8205159 : The Header of the print out displayed incomplete
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 10,11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2018-06-15
  • Updated: 2019-02-20
  • Resolved: 2019-02-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Testsuite: Regression manual
Test name(s):javax/swing/JTable/PrintManualTest_FitWidthMultiple.java
Product(s) tested: openjdk 10.0.2b09 (64bit) 
OS/architecture: ubuntu18.04-x64
Printer:Brother DCP-1618W 

Actual behavior:
1. The Header of the print out displayed incomplete,please refer to PrintOut_1.jpg and PrintOut_2.jpg
2. There is no such issue on Ubuntu18.04 x64 with Oracle JDK 10.0.2 b09. 
Comments
It's not reproducible with latest jdk13. I could see the Header 1 and Header 2 in respective pages in the printed output from ubuntu18.04. I think it is fixed by JDK-8139178.
20-02-2019

Test build:jdk11.0.2b07(64bit) Platform:win10-x64(version is 1803) Jtreg tools:jtreg4.2b13 The following case failed as the same issue: RULE "java/awt/print/PrinterJob/TransImages/TransImages.java" ExitCode 265
14-12-2018

Test build:jdk11.0.2b02(64bit) & jdk11.0.2b03(64bit) & jdk11.0.2b04(64bit) & jdk11.0.2b07(64bit) Platform:win10-x64(version is 1803) & ubuntu18.04-x64 & solaris11.3 sparc & win10-x64(version is 1803) Jtreg tools:jtreg4.2b13 The following case failed as the same issue: RULE "javax/swing/JTable/PrintManualTest_FitWidthMultiple.java" Exception java.lang.RuntimeException: printed contents is beyond borders
14-12-2018

It seems is related to JDK-8139178 and JDK-8177387
17-08-2018

Tried to verify in jdk12 if it works well with t2k by running with sun.java2d.font.scaler=t2k but then realized t2k has been removed by JDK-8191512. sun.java2d.font.scaler=jdk invokes same problem in ubuntu18.04
16-08-2018

Since in 10 this affected OpenJDK and in 11 Oracle JDK (the bug closed as a dup.) it is probably a freetype code path issue.
09-08-2018