On Thu, 22 Oct 2026 20:43:58 GMT, Andy Goryachev <[email protected]> wrote:

> Root cause: a font change in `TextArea` did not propagate to the layout (in 
> its `Text` node).  Another symptom was triggered by the `PrismLayout` reusing 
> the stale layout cache containing runs with tabs.
> 
> This fix required a headful test since it needs the real text layout.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

modules/javafx.graphics/src/main/java/com/sun/javafx/text/PrismTextLayout.java 
line 729:

> 727:      * @return true, if only the runs can be reused
> 728:      */
> 729:     private boolean onlyReuseRuns() {

See: 
https://github.com/openjdk/jfx/pull/2145/files#diff-998e4e05957f324eac913749e4eabc7beb6fc49667344314f66354de68f97236

This could be tested in `TextLayoutUtilsContractTest.java`. Probably the very 
same way, so copy a test, change the tab width, and check the 
`glyphLayoutCreationCounter`.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2352#discussion_r4357345570

Reply via email to