Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1791982

Summary: OpenJDK 11 texts are being displayed without spaces between words with Motif/KDE desktop
Product: Red Hat Enterprise Linux 7 Reporter: Arthur Ferreira <aferreir>
Component: java-11-openjdkAssignee: Mario Torre <neugens>
Status: CLOSED ERRATA QA Contact: OpenJDK QA <java-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.7CC: ahughes, bill.muller, chris.yuan, dbhole, gbailey, jandrlik, jvanek, lmiksik, neugens, paul.bijnens, sgehwolf, vashirov
Target Milestone: rc   
Target Release: 7.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-11-openjdk-11.0.7.1-0.1.ea.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:53:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Application Reproducer none

Description Arthur Ferreira 2020-01-16 19:28:03 UTC
Created attachment 1652883 [details]
Application Reproducer

Description of problem:

Customer in case 02539524 has a desktop java application where the spaces between words are not being displayed in KDE/Motif desktop. 

Version-Release number of selected component (if applicable):

/etc/alternatives/jre_1.8.0_openjdk/bin/java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

/etc/alternatives/jre_11_openjdk/bin/java -version
openjdk version "11.0.5" 2019-10-15 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.5+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode, sharing)

How reproducible:

Installing KDE and Motif desktops

Steps to Reproduce:
1. Installing KDE
2. Switching to the KDE desktop
3. Selecting "KDE Plasma Workspace" on startup

$ echo $DESKTOP_SESSION
1-kde-plasma-standard

4. Running the "FontSpace.jar" application.

Actual results:

Texts without space between words

Expected results:

Texts with space between words

Additional info:

- If no font is specified for a Java component, it will default to using the Dialog font, which on my system maps to /usr/share/fonts/dejavu/DejaVuSans.ttf. Using this font seems to cause the problem. If I specify another font, such as /usr/share/fonts/dejavu/DejaVuSerif.ttf, the spaces display correctly.

- I also noticed that the Java component that seems to cause the problem is a JTextArea. If you set the text for the JTextArea to something starting with a space, then none of the spaces in the text will display. For example:
  - The following JTextArea component will display without any spaces.
      JTextArea textArea = new JTextArea();
      textArea.setText(“    Test      Text”);

- The following JTextArea component will display all of the spaces.
    JTextArea textArea = new JTextArea();
    textArea.setText(“Test      Text”);

Comment 3 Mario Torre 2020-01-17 08:57:36 UTC
*** Bug 1765579 has been marked as a duplicate of this bug. ***

Comment 14 Chris Yuan 2020-05-05 21:05:28 UTC
CC: chris.yuan

Comment 20 errata-xmlrpc 2020-09-29 19:53:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (java-11-openjdk bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3919