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

Hebrew letters are shown as squares (can't be read)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u66
    • javafx
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Eclipse IDE for Java Developers
      Version: Mars.1 Release (4.5.1)
      Build id: 20150924-1200

      A DESCRIPTION OF THE PROBLEM :
      On a new computer trying to run an application from Eclipse or from cmd.exe all Hebrew letters are shown as squares

      I also found in the internet another developer with the same problem, please look is this link
      http://stackoverflow.com/questions/31344162/javafx-actual-default-font


      ADDITIONAL REGRESSION INFORMATION:
      The same application (exactly the same Jar) is working well my previous computer (with the same configuration java and op system) my regional setting are the same in both computers and the default Local is set for Hebrew
      with the new computer (the one with the problem) when I am running a Swing or AWT applications with Hebrew letters there is no problem and I can see the Hebrew letters right
      The problem is only with JavaFX
      By the way - this problem is not consistent with all Fonts, when I'am using the "Tahoma" font explicitly there is no problem and I can see the Hebrew letters (in the new computer)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Running my application from cmd.exe like this:
      java -jar soho_owner.jar
      or with Eclipse "Run" option

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      to see and be able to read Hebrew text when I am not using or selecting other than system font
      ACTUAL -
      Hebrew letters are shown as squares (can't be read)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No crash here

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.geometry.Insets;
      import javafx.geometry.Pos;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.Label;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.HBox;
      import javafx.scene.layout.Priority;
      import javafx.scene.paint.Color;
      import javafx.stage.Stage;

      public class HBooxDemo extends Application {

      @Override
      public void start(Stage primaryStage) {

      HBox hbox = new HBox(10);
      TextField field = new TextField();
      HBox.setHgrow(field, Priority.ALWAYS);
      hbox.setAlignment(Pos.BASELINE_LEFT);
      hbox.getChildren().addAll(
      new Label("חפש:"), field, new Button("בצע")
      // the first label is "Search" the second label is "Go"
      );
      hbox.setPadding(new Insets(10));

      Scene scene = new Scene(hbox, 600, 250, Color.WHITE);
      primaryStage.setScene(scene);
      primaryStage.show();
      }

      public static void main(String[] args) {
      launch(args);
      }
      }

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

      CUSTOMER SUBMITTED WORKAROUND :
      No work around

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

              Created:
              Updated: