I would like to keep the JNI code for some time yet.
For example, it was useful in evaluating what was going on behind a
recent bug
which showed up only in the FFM code path.
Also, I continue to find it useful for performance comparisons.
-phil.
On 4/23/26 3:11 AM, Daniel Gredler wrote:
Hi guys,
It looks like the HarfBuzz text shaping integration was migrated from JNI
to FFM in Java 22, but the JNI interface is still available by setting
sun.font.layout.ffm=false. Is there a roadmap for eliminating the old JNI
code? I'm working on a bugfix which probably requires a change in this area
of the code, and as things stand, I think some duplicate work will be
needed to fix both versions, which leads to more complex code reviews, etc.
I'd love to avoid that, but I don't know if the FFM code is considered
stable and performant enough to eliminate the JNI option.
Take care,
Daniel