Bug 329 - Potential issues with bi-directional text
Summary: Potential issues with bi-directional text
Status: VERIFIED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2007-10-29 11:12 CET by Sven Gothel
Modified: 2010-03-24 07:51 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Screen shot showing difference between JTextArea and TextRenderer (140.67 KB, image/jpeg)
2007-10-29 11:12 CET, Sven Gothel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:51:00 CET


---- Reported by kbr 2007-10-29 11:12:16 ----

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.



---- Additional Comments From kbr 2007-10-29 11:12:55 ----

Created an attachment
Screen shot showing difference between JTextArea and TextRenderer




---- Additional Comments From kbr 2008-03-30 16:47:51 ----

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.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:51 EDT  ---

This bug was previously known as _bug_ 329 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=329
Imported an attachment (id=110)

The original submitter of attachment 110 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.