On Fri, 25 Sep 2026 15:57:51 GMT, Sergey Bylokhov <[email protected]> wrote:

>> I have already done that..see this comment 
>> https://github.com/openjdk/jdk/pull/32742#issuecomment-5633538857
>> It needed to be changed since system default font can change from one 
>> release to another, mainly for linux, I presume, where sometimes  test 
>> expectation isn't met with that font, so we need a font which is stable 
>> across platforms.
>> Did you remember seeing any issues with different fonts present in the 
>> system when you were fixing the original issue?
>
>>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.

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

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

Reply via email to