Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190907

Windows 10 default Korean Font Malgun Gothic available not used by GUI elements even though available without Korean Language Pack

    Details

      Description

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Version 10.0.14393

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Tested with and without Korean Language Pack installed

      A DESCRIPTION OF THE PROBLEM :
      Windows 10 has a font for displaying Korean characters (Malgun Gothic) that is available even without the Korean Language Pack Installed.

      Java does not use it however.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      JLabel label = new JLabel("테스트");

      ACTUAL -
      boxes rather than Korean characters

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;
       
      public class HelloWorld {
          private static void createAndShowGUI() {
               JFrame frame = new JFrame("테스트 Swing");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       
              JLabel label = new JLabel("테스트");
              frame.getContentPane().add(label);
       
              frame.pack();
              frame.setVisible(true);
          }
       
          public static void main(String[] args) {
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                  public void run() {
                      createAndShowGUI();
                  }
              });
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Copy jre\lib\fontconfig.properties.src to jre\lib\fontconfig.properties and edit as follows:

      80c80
      < sansserif.plain.korean=Gulim
      ---
      > sansserif.plain.korean=Malgun Gothic
      87c87
      < sansserif.bold.korean=Gulim
      ---
      > sansserif.bold.korean=Malgun Gothic
      94c94
      < sansserif.italic.korean=Gulim
      ---
      > sansserif.italic.korean=Malgun Gothic
      101c101
      < sansserif.bolditalic.korean=Gulim
      ---
      > sansserif.bolditalic.korean=Malgun Gothic
      136c136
      < dialog.plain.korean=Gulim
      ---
      > dialog.plain.korean=Malgun Gothic
      143c143
      < dialog.bold.korean=Gulim
      ---
      > dialog.bold.korean=Malgun Gothic
      150c150
      < dialog.italic.korean=Gulim
      ---
      > dialog.italic.korean=Malgun Gothic
      157c157
      < dialog.bolditalic.korean=Gulim
      ---
      > dialog.bolditalic.korean=Malgun Gothic
      164c164
      < dialoginput.plain.korean=Gulim
      ---
      > dialoginput.plain.korean=Malgun Gothic
      171c171
      < dialoginput.bold.korean=Gulim
      ---
      > dialoginput.bold.korean=Malgun Gothic
      178c178
      < dialoginput.italic.korean=Gulim
      ---
      > dialoginput.italic.korean=Malgun Gothic
      185c185
      < dialoginput.bolditalic.korean=Gulim
      ---
      > dialoginput.bolditalic.korean=Malgun Gothic
      294a295
      > filename.Malgun_Gothic="Malgun Gothic.TTC"


        Attachments

        1. 8u151-result.PNG
          8u151-result.PNG
          3 kB
        2. 9-result.PNG
          9-result.PNG
          2 kB
        3. HelloWorld.java
          0.6 kB

          Activity

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: