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

[Text] Put spaces in front of a long Chinese sentence, it will not display properly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u20
    • 8u5
    • javafx
    • jdk1.8.0_05 + mac os

      Input a very long Chinese sentence into a textarea. (You can copy the following)

      这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文

      Then put your cursor to the beginning of the sentence, then press <kbd>space</kbd>.

      You will see the whole line moved to the next line, but I expect it the spaces and Chinese sentence is in the same line, like:

                这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文

      It seems JavaFx treat the whole Chinese sentence as a single word, which is not correct, it should treat each Chinese character a single word.

      You can use any JavaFX textarea to reproduce this issue

            fheidric Felipe Heidrich (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: