Proposing new API: [Text,TextFlow].getLayoutInfo()

Andy Goryachev andy.goryachev at oracle.com
Tue Oct 8 18:46:30 UTC 2024


Dear fellow developers:

I'd like to propose a new (missing) API in Text and TextFlow which will extract some information about the current text layout [0], [1].

At the moment, it provides information about the text lines (offsets and bounds) plus the overall layout bounds.  The internal API provide more information, for example about individual text runs within each text line, but capturing those will have some overhead, and I am not sure of any use cases right now.

Are there any thoughts or suggestions as to what other information might be useful for the application developers?

Thanks!
-andy



References

[0] https://bugs.openjdk.org/browse/JDK-8341670

[1] https://github.com/openjdk/jfx/pull/1596
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241008/08bf999e/attachment-0001.htm>


More information about the openjfx-dev mailing list