jogl
  1. jogl
  2. JOGL-329

Potential issues with bi-directional text

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: PC

    • Issuezilla Id:
      329

      Description

      Patrick Murris from the NASA World Wind Java project has indicated some
      potential issues with bi-directional text and the TextRenderer:

      """
      I keep throwing foreign text from Wikipedia into the text renderer, and i'm
      still wondering exactly what the application should handle and what does the
      text renderer takes care of.

      I must admit i am not very familiar with the subject of ltr vs rtl text
      direction and such... not mentioning top to bottom. Still, looking at some
      arabic text - and looking hard to follow the glyphs... i can tell there are some
      ltr-rtl fighting in there - see screenshot (and look at both the textbox on the
      left and the main text display over the globe).

      My current Locale is french... i'm using arial, and i didnt try to switch
      locales for text rendering either.

      I can fairly imagine the application would have to handle (or know) whether the
      text direction should be ltr or rtl and decide the text left/right edge location
      accordingly. Then the text renderer should draw from the given x,y in the proper
      direction. Is that the way it is supposed to work ? If yes, then how does the
      application knows the proper text direction for a given text string ?
      """

      The attached screen shot is an example.

      I am not sure there is an issue here. The Swing JTextArea requires a
      ComponentOrientation to get its text to render in the correct direction. The
      JOGL TextRenderer should handle, and appears to be handling, combined
      right-to-left and left-to-right glyphs on the same line correctly.

        Activity

        Hide
        kbr added a comment -

        Created an attachment (id=109)
        Screen shot showing difference between JTextArea and TextRenderer

        Show
        kbr added a comment - Created an attachment (id=109) Screen shot showing difference between JTextArea and TextRenderer
        Hide
        kbr added a comment -

        At this point I don't think there is a bug in the JOGL TextRenderer. Closing as
        "invalid". Reopen this bug or file a new one if there is a concrete issue with a
        test case.

        Show
        kbr added a comment - At this point I don't think there is a bug in the JOGL TextRenderer. Closing as "invalid". Reopen this bug or file a new one if there is a concrete issue with a test case.

          People

          • Assignee:
            jogl-issues
            Reporter:
            kbr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: