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

REGRESSION: GraphicsEnvironment.getAvailableFontFamilyNames misses fonts with localised names on XP

XMLWordPrintable

    • 2d
    • b43
    • 6
    • b77
    • generic
    • generic

      A DESCRIPTION OF THE REGRESSION :
      OS:Windows XP Professional SP1+
      Language:Simplified Chinese
      java version "1.6.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta2-b72)
      Java HotSpot(TM) Client VM (build 1.6.0-beta2-b72, mixed mode, sharing)

      Locale: Zh_Cn
      the font family set returned by GraphicsEnvironment.getAvailableFontFamilyNames
      doesn't include chinese font families...


      REPRODUCIBLE TESTCASE OR STEPS TO REPRODUCE:
      package testbug;
      import java.awt.GraphicsEnvironment;
      import java.util.Locale;

      public class TestFontFamily {
          
          public static void main(String[] args) {
              GraphicsEnvironment ge =
                  GraphicsEnvironment.getLocalGraphicsEnvironment();
                  System.out.println("Default Locale:"+String.valueOf(Locale.getDefault()));
              String[] familyNames =
                  ge.getAvailableFontFamilyNames();
              
              for (String fontFamily : familyNames) {
                  System.out.println(fontFamily);
              }
              System.exit(0);
          }
      }


      RELEASE LAST WORKED:
      5.0 Update 6

      RELEASE TEST FAILS:
      mustang-beta

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      behave as J2SE Update6 that returns a set including chinese font...
      ACTUAL -
      no chinese font is returned.

      Release Regression From : mustang
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

            prr Philip Race
            collins Gary Collins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: