JDK-8303021 : Text/TextFlow: support hyphens property
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2023-02-21
  • Updated: 2023-02-27
  • Resolved: 2023-02-27
Related Reports
Relates :  
Description
Provide support for 'hyphen' CSS property:

The hyphens CSS property specifies how words should be hyphenated when text wraps across multiple lines. It can prevent hyphenation entirely, hyphenate at manually-specified points within the text, or let the browser automatically insert hyphens where appropriate.

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

May apply to Text and TextFlow.
Comments
I am not sure what is needed to implement this but it looks like you need a dictionary - just for starters. And we'd need the JDK to provide that dictionary and to be able to specify something like this in requesting a BreakIterator. That doesn't exist. So I am going to say we will never support this .. because its unlikely we'll ever have what we need. And Safari does not support this property. The example at https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens does not render.
27-02-2023