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

Wingding Font (and others) not rendering correctly in Text Object

XMLWordPrintable

    • generic
    • generic

      FULL PRODUCT VERSION :
      1.8.0_141

      ADDITIONAL OS VERSION INFORMATION :
      WIndows 10

      A DESCRIPTION OF THE PROBLEM :
      Wingdings are other fonts not rendering correctly with text Object and label object.
      Have tried java code and FXML. to no avail.
      Tried different software code sets.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      create a pane with text. Set text font to Wingding and result is default font

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Correct render of any and all installed fonts
      ACTUAL -
      rendered to default font.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.scene.text.Font;
      import javafx.scene.text.FontPosture;
      import javafx.scene.text.FontSmoothingType;
      import javafx.scene.text.FontWeight;

      public class TextPane extends StackPane {


      protected Text text = new Text();

      public TextPane() {




      text.setFont(new Font("Wingdings", 24));
      text.setSmooth(true);
      text.setFontSmoothingType(FontSmoothingType.LCD);



      text.setFill(Color.web(textMember.getFontColor()));
      getChildren().add(text);




      }






      }

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

      CUSTOMER SUBMITTED WORKAROUND :
      None per se, save not to use unrenderable fonts.

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

              Created:
              Updated: