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

Text: incorrect font rendering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • Win7/JDK6/b36/prism

      Sample to reproduce:

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.VBox;
      import javafx.scene.text.Text;
      import javafx.stage.Stage;

      public class Main extends Application {

          VBox root;

          @Override
          public void start(Stage stage) {
              stage.setTitle(this.getClass().getSimpleName());
              stage.setScene(new AppScene());
              stage.setVisible(true);
          }

          public static void main(String[] args) {
              launch(Main.class, args);
          }

          public class AppScene extends Scene {
              public AppScene() {
                  super(root = new VBox());

                  Text text1 = new Text(" Nodes trev ttat");
                  Text text2 = new Text("Nodes trev ttat");

                  root.getChildren().add(text1);
                  root.getChildren().add(text2);
              }
          }
      }

            prr Philip Race
            ogb Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: