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

Helvetica font issue

XMLWordPrintable

    • 2d
    • x86
    • windows_7

      FULL PRODUCT VERSION :
      java full version "1.8.0_77-b03"

      ADDITIONAL OS VERSION INFORMATION :

      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      want to have helvetica font, it returns helvetica black. Print helvetica fonts and 1.8 java (update 72 and update 77)shows
      Helvetica Black
      Helvetica Black
      Helvetica Bold
      Helvetica Bold Oblique
      Helvetica Oblique
      qing---menu font---Helvetica Black

      But 1.7 java shows
      Helvetica
      Helvetica Black
      Helvetica Bold
      Helvetica Bold Oblique
      Helvetica Oblique
      qing---menu font---Helvetica

      Therefore the menu items in our application shows helvetica black style , instead of helvetica style.

      REGRESSION. Last worked in version 8u77

      ADDITIONAL REGRESSION INFORMATION:

      use the following code to reproduce it.

        GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
          Font[] fonts = e.getAllFonts(); // Get the fonts
          for (Font f : fonts) {
            System.out.println(f.getFontName());
          }

              Font f = new Font("helvetica", Font.PLAIN, 13);
              if(f != null)
              System.out.println("qing---menu font---" + f.getFontName());


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      use above example to reproduce the problem.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      expect to show

      Helvetica font instead of helvetica black
      ACTUAL -
      show helvetica black and font is very thick.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
       GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
          Font[] fonts = e.getAllFonts(); // Get the fonts
          for (Font f : fonts) {
            System.out.println(f.getFontName());
          }

              Font f = new Font("helvetica", Font.PLAIN, 13);
              if(f != null)
              System.out.println("qing---menu font---" + f.getFontName());

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

            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: