-->

NetBeans: Change Ui's font family

2020-05-08 19:13发布

问题:

Sorry for duplicate if my question is it: I found the solution for some hours and tried some solutions, but zero effect or lack of explanations.

So, how I can change the IDE GUI font family? NOT code font family, NOT GUI font size, changing the the font FAMILY of GUI (menu, labels, etc.), please!!!

It's simply if you use Darcula Look and fill theme, but what if I use the Nimbus light theme?

Update: Solutions that I tried

Search request: netbeans change ui font

Google search results:

  1. Set NetBeans UI Font - plugin detail

This module will allow you to set the font family and size of the fonts used by netbeans in the UI. When you add the command line switch -J-Dramos.nb.ui.font="MyFavoriteFont,14" to the netbeans options this module will set the font used by netbeans to the font named MyFavoriteFont with the size of 14. This doesn't seem to work with synth based look and feels.

Where I need to input -J-Dramos.nb.ui.font="MyFavoriteFont,14" in NetBeans options??!!

  1. FaqFontSize - NetBeans Wiki

Not font size, font family please!!

  1. How to change NetBeans 7.0 UI font? - Stack Overflow

Contains link to FaqFontSize - NetBeans Wiki

  1. NetBeans IDE scaling on Windows 8

Not scaling, UI font family change please!!

  1. My Knowledge: How To Change Netbean UI Font

It's about changing font size. Not size, font family, please!!

  1. Netbeans Interface way too small : Surface - Reddit

It's about changing font size. Not size, font family, please!!


Here is Japanese article, but you can understand what is required to edit in fontconfig.properties.src. Unfortunately, it does not works.

回答1:

So, how I can change the IDE GUI font family? NOT code font family, NOT GUI font size, changing the the font FAMILY of GUI (menu, labels, etc.)

Unfortunately, the ability to specify the font family for the IDE itself is not currently provided in NetBeans. See these NetBeans bug reports requesting the same feature:

  • Bug 114017 - I18N - provide properties/options to change ide global font name and font size

  • Bug 125083 - I18N - IDE's Font/Fontsize can be configured furthest

Where I need to input -J-Dramos.nb.ui.font="MyFavoriteFont,14" in NetBeans options?

To specify the details for the "ramos" plugin you referenced:

  • Locate and edit the text file netbeans.conf which will be under your NetBeans installation directory in the etc folder.

  • Locate the line containing the text netbeans_default_options and append the data for the plugin, save the file and then restart NetBeans. For example, this line (at the very end) specifies to the plugin that the Serif font should be used for the NetBeans IDE:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dramos.nb.ui.font=Serif,14"

Here is a screen shot of the NetBeans IDE using that (really ugly!) Serif font:

If the approach described above does not work for you then select IDE Log from NetBean's View menu to review startup issues. Any problems with the plugin might be logged there.