FX does (of course) support required ligatures, meaning those without
which some script (eg Arabic)
can't even be rendered.
But that is implementation, no API.
So this is about adding an API to request optional ligatures - and other
OpenType features.
For example I think we'd want to support things like small caps etc.
Of course we'd need to make sure all the measuring code is up to that ..
and BTW
the APIs to do measurement probably should be in the queue ahead of this ..
And I am not sure about just an API to request ligatures without an API
to query
if ligatures are available for a font. However that may turn out to be
tricky for a
few reasons, but we should at least study it.
And to try to answer the "when" question .. it is on a "desired" list in
my head and maybe
even on a wiki somewhere .. but no concrete timetable exists.
But it is good to get feedback like this so we know it is interesting to
developers.
-phil.
On 10/24/22 12:07 PM, Scott Palmer wrote:
Something I noticed while experimenting with RichTextFX, when I set it
to use Fira Code for the font, like I do in NetBeans, I see that
JavaFX doesn't support ligatures. I found this issue that's been
around for quite some time:
[JDK-8091616] Prism: font: ligature and kerning support - Java Bug
System <https://bugs.openjdk.org/browse/JDK-8091616>
bugs.openjdk.org <https://bugs.openjdk.org/browse/JDK-8091616>
jira-favicon-hires.png <https://bugs.openjdk.org/browse/JDK-8091616>
<https://bugs.openjdk.org/browse/JDK-8091616>
Is there any drive to get this implemented within the next few
releases? I would help, but unfortunately I suspect it will take more
time than I can commit to it.
I’m hoping that eliminating some of the remaining gaps between what
JavaFX supports and Swing supports would be a priority, as it removes
some barriers to JavaFX adoption... but maybe not?
Regards,
Scott