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

Japanese (and presumably Chinese) Text and TextFlow Nodes should be able to display vertically

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 7u15
    • javafx

      Japanese text has traditionally been written and printed vertically, beginning from the upper right corner as I've tried to make clear in this example image: http://tinypic.com/r/2z4l72r/6 . While much Japanese on the internet is printed horizontally, due to current limitations in html/css that require some hacks to get vertical text, nearly all printed Japanese media is still vertical, and it reads much more naturally this way. Further, css3, along with support for bidi text, is supposed to bring support for easily rendering vertical text:( http://dev.w3.org/csswg/css3-writing-modes/ is the current editor's draft) .

      To describe my use case, I am currently working on an application for learning foreign languages through assisted reading of texts, targeted primarily at Japanese learners. Because I will need to support rather large amounts of text at a time, naive attempts to force JavaFX to render vertical text (which might be fine for small labels or other situations) are simply untenable here. In the best case scenario, JavaFX would have a couple of css properties to describe the flow of the text, and it would just work. I've looked into implementing this myself, but in the Text source code, the assumption that text will be horizontal seems to go all the way down, making this a bit difficult to implement as a custom control.

            fheidric Felipe Heidrich (Inactive)
            ekendojfx Edub Kendo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: