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

Controls slow considerably when displaying RTL-languages text on Linux

    XMLWordPrintable

Details

    • x86_64
    • linux

    Backports

      Description

        FULL PRODUCT VERSION :
        openjdk version "1.8.0_45-internal"
        OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
        OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux

        A DESCRIPTION OF THE PROBLEM :
        JavaFX controls will slow down considerably when displaying text in RTL languages such as Arabic or Hebrew. This is _not_ an issue with NodeOrientation, only with the actual language text.

        Same code with text in English or other non-latin languages (Such as Japanese or Russian for example) work fine.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Create a ComboBox (this is probably happening in other controls too, but is most notable in a ComboBox).
        2. Add >10 items with text in either Hebrew or Arabic.
        3. Try to scroll through the items in the ComboBox.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Opening the ComboBox and scrolling through it should be as fast as when the strings inside are in any other language.
        ACTUAL -
        Opening and scrolling through items is extremely slow and laggy.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javafx.application.Application;
        import javafx.scene.Scene;
        import javafx.scene.control.ComboBox;
        import javafx.scene.layout.Pane;
        import javafx.stage.Stage;



        public class MainApp extends Application{

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

        }

        @Override
        public void start(Stage mainStage) throws Exception {
        Pane p = new Pane();
        ComboBox<String> cb = new ComboBox<String>();
        for (int i=0; i<30; i++)
        {
        cb.getItems().add("שלום");
        }
        p.getChildren().add(cb);

        Scene s = new Scene(p);

        mainStage.setScene(s);
        mainStage.show();

        }

        }

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: