GitHub user PavelTurk closed the discussion with a comment: NetBeans 31 + Java 
27 -> Bold Font

I solved the problem. It seems to be a bug in OpenJDK 27.

The cause was duplicate fonts: both fonts-liberation and fonts-liberation2 were 
installed, and they contain files with identical names. On JDK 27, new 
Font("Liberation Sans", Font.PLAIN, 16) resolves to Liberation Sans Bold 
Italic, whereas JDK 21, 24, and 25 correctly return the regular face.

According to the font debug log, the JDK initially registers the Bold Italic 
file with a higher rank during font lookup. When the duplicate Regular file is 
subsequently encountered, it is rejected because it has a lower rank. As a 
result, the font family is left without a plain face, and the lookup falls back 
to Bold Italic.

Workaround - sudo apt remove fonts-liberation2

I will submit a bug report.

GitHub link: 
https://github.com/apache/netbeans/discussions/9745#discussioncomment-19142707

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to