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

[Text] TextArea cannot handle Chinese space character properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Window XP (32bit)
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b129)
      Java HotSpot(TM) Client VM (build 25.0-b69, mixed mode)

      Description

      Chinese paragraph usually start with 2 spaces.
      it should display like this:
      ------------
        測試測試測試測試測試測試測試測試。1st line
        測試測試測試測試測試測試測試測試。2nd line
      ------------



      When TextArea wrapping=true, it handles chinese space like english space.
      The starting 2 spaces display in 1st line, and the later chinese text display in 2nd line as follow:
      ------------
        
      測試測試測試測試測試測試測試測試。1st line
        
      測試測試測試測試測試測試測試測試。2nd line
      ------------

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: