Open rkeen-siemens opened 1 year ago
More a workaround, but have you tried setting the font size in the FlatLaf defaultFont property too?
Yes, setting the font size in the defaultFont
property doesn't make a difference. The font is still set to dialog.
@rkeen-siemens did you remove the --fontsize
argument in the process? Setting the defaultFont
to eg. 20 FONT_NAME
works for me. At least in the file chooser.
did you remove the --fontsize argument in the process?
Good point. Removing the --fontsize
argument does work around the issue.
Apache NetBeans version
Apache NetBeans 16
What happened
The new feature to allow customizing FlatLaf is nice, but when changing the font and changing the font size the new font is not used for file chooser file list and details views.
How to reproduce
defaultFont = "Nanum Brush Script"
)./bin/netbeans --fontsize 24
). You'll see the UI has changed to use the new font as expectedThe file chooser dialog that appears uses the selected font for most of the UI, but the file list and detail views use the standard sans serif font rather than the new font.
If you launch NetBeans without overriding the font size, the file chooser uses the correct font.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 Pro, CentOS 7.6 with Gnome 3
JDK
Java 17.0.4.1
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
I suspect this is due to the logic in
AllLFCustoms.initCustomFontSize
where it resizes the existing font for "FileChooser.listFont" (and others). The problem is that at this point there is no value set for some of the settings including "FileChooser.listFont", "OptionPane.messageFont", and "windowTitleFont" and they are then assigned the default Dialog font.Some possible solutions:
Are you willing to submit a pull request?
Yes
Code of Conduct
Yes