JDK-8330559 : Trailing space not rendering correctly in TextFlow in RTL mode
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: jfx23
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2024-04-18
  • Updated: 2024-11-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Relates :  
Description
Trailing space present in a Text node is considered as RTL text even when it is present in LTR text if the node orientation is RTL. In this case an extra space is rendered in the beginning.
If there is any other character like ":" before the space, the space is rendered between ":" and first character of LTR text and an extra space is rendered before the ":"
Screenshots and code to reproduce the issue is attached.

Expectation:
The trailing space should not be rendered between ":" and first character of LTR text and extra space should not be rendered before ":" similar to how it is handled in HTML. Example is attached.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1468 Date: 2024-05-31 14:39:00 +0000
31-05-2024