JDK-8148746 : JEditorPane: font rendering issues (undrawn text, invalid selection)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_ubuntu
  • Submitted: 2016-02-01
  • Updated: 2018-09-05
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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Saving here the part of JDK-8148360 which isn't covered by the fix provided for JDK-8142966.
It does not relate to hidpi as the issue is also reproducible at least with JDK8 b132 (and there is no need to set GDK_SCALE to reproduce).

JDK9 b101 + Ubuntu 14.04 Linux
Please run the 'FontTest.java' example from JDK-8148484 with different L&Fs (GTK, Metal, Motif).

there are the following issues (please see the screenshots):
1. the text somewhere isn't drawn fully
2. invalid selection highlighting
(and not sure if these two are bugs, but just in case)
3. the fonts (especially italic) are rough for Motif in comparison with other L&Fs (see 'motif.png')
4. sometimes the fonts are quite different from their HTML twins (see 'metal-2.png' for Courier)

Comments
there are a lot of old bugs related to JEditorPane which are still open (like JDK-6715419, JDK-4194023, etc.), so this one is probably just another incarnation for one of them (at a 1st glance cannot find the exact duplicate for it)
01-02-2016

it does not work for JDK8 as well, so I guess no
01-02-2016

Is it a regression?
01-02-2016