JDK-8212224 : Devanagari glyphs (900-97F) do not show in jdk-11
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-10-14
  • Updated: 2018-11-15
  • Resolved: 2018-11-15
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 12
12Resolved
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10 Pro, Vs. 1803

java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)


A DESCRIPTION OF THE PROBLEM :
See above

REGRESSION : Last worked in version 10.0.2

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the sample code.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Current squares are replaced by glyphs.
ACTUAL -
Squares only.

---------- BEGIN SOURCE ----------
// 0905, 096F and 097F are the Devanagari glyphs.

import javax.swing.*;

public class Unicode extends JFrame {
  final String TEXT= "Hello \u0905\u096F\u097F\u2611\u2600\u26FF\u2300\u23FF";

  public Unicode() {
    setSize(360,120);
    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setTitle(TEXT);
    Box box= Box.createVerticalBox();
    box.add(new JButton(TEXT));
    box.add(new JLabel(TEXT));
    box.add(new JTextField(TEXT));
    add(box);
    setVisible(true);
  }


  public static void main(String args[]) {
    SwingUtilities.invokeLater(Unicode::new);
  }

}

---------- END SOURCE ----------

FREQUENCY : always



Comments
It is because the Lucida fonts were removed. I can't see how harfbuzz would cause this.
19-10-2018

It is a regression from jdk11b17 build. Looking at the fixes gone in there, I narrowed it to 3 possible fixes which might cause this JDK-8203485: [freetype] text rotated on 180 degrees is too narrow JDK-8191522: Remove Bigelow&Holmes Lucida fonts from JDK sources and JDK-8199530: Upgrade harfbuzz to the latest version (1.7.6) Reverting first 2 didn't help so it seems JDK-8199530 is the regression-causer. Maybe Phil might know if that fix can cause this issue as it is a font-glyph mapping issue.
19-10-2018

Reported with JDK 11, Devanagari glyphs (900-97F) does not display correctly. Checked this in Windows 10 with respective JDK versions and could confirm this as a regression. Results: ========= 8u181: OK 9: OK 10.0.2: OK 11: Fail 12 ea b14: Fail This is a regression in JDK 11 (see attached screenshots as reference) To verify run the attached test case with respective JDK versions.
16-10-2018