On Fri, 25 Sep 2026 16:10:08 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>>>Did you remember seeing any issues with different fonts present in the 
>>>system when you were fixing the original issue?
>> 
>> That was an idea to test the system font at least default one, so the 
>> swing/awt will render that properly. It is unclear why it does not work now 
>> on windows/linux even with getVisualBounds
>
> FWIW, Default font works now in all platforms in most recent versions of the 
> OS in CI systems but since it has failed in the past, there's no surety that 
> it will pass when the next OS versions with different system font come along.
> Also, I guess default font in macos uses same as Dialog and as pointed out, 
> we were being lucky that it passes with that font, so we are trying to 
> stabilize with a known font that will remain stable even if default system 
> font changes.

No, it should work with DIALOG on Windows & Linux. You can revert that change.
We aren't trying to stabilise with a known font. That idea has been debunked as 
being the problem.
Ideally we should make this test try EVERY font on the system and it should 
pass with all of them.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32742#discussion_r4107214917

Reply via email to