RFR: 8341670: [Text, TextFlow] Public API for Text Layout Info [v25]

Andy Goryachev angorya at openjdk.org
Fri May 2 17:10:03 UTC 2025


On Thu, 1 May 2025 18:39:44 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   sealed
>
> modules/javafx.graphics/src/main/java/javafx/scene/text/LayoutInfo.java line 57:
> 
>> 55:      * @return the layout bounds
>> 56:      */
>> 57:     public abstract Rectangle2D getBounds(boolean includeLineSpacing);
> 
> Should this return a `Bounds` object?

No, this is strictly a 2D API, everything is expressed in lightweight Rectangle2D's.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1596#discussion_r2071908720


More information about the openjfx-dev mailing list