JDK-8303023 : Text/TextFlow: support line-break property CJK
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-02-21
  • Updated: 2023-02-27
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
Relates :  
Description
Provide support for 'line-break' CSS property:

The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.

https://developer.mozilla.org/en-US/docs/Web/CSS/line-break

May apply to Text and TextFlow.
Comments
I don't think we can do this without JDK support. FX PrismTextLayout already does if (wrapWidth > 0) { if ((flags & (FLAGS_HAS_COMPLEX | FLAGS_HAS_CJK)) != 0) { boundary = BreakIterator.getLineInstance(); boundary.setText(new CharArrayIterator(chars)); } } So we are dependent on java.text.BreakIterator and I don't see any way to request the CSS values.
27-02-2023