Issue
I am trying to add new fonts to my Netbeans editor by downloading them and double-clicking the .ttf files and pressing 'Install' on the upper left corner. I am able to install the fonts with no issues. However, when I reload Netbeans and go to select the new font, it does not appear on the list of available fonts. Restarting Windows doesn't help. Has anyone had this issue before? And if so, we you able to fix it and how?
Thanks in advance.
EDIT: I am using Netbeans 10.
EDIT2: I am trying to install Roboto Mono and Inconsolata, here are the links to the downloads:
https://fonts.google.com/specimen/Inconsolata
https://fonts.google.com/specimen/Roboto+Mono
Get back to me if you have any luck, thank you.
Solution
Initially I had the same problem as you. After installing the new fonts and rebooting, those new fonts were not available in NetBeans 10.0, even though they were available in other applications such as Firefox and Notepad.
In my case, installing the *.ttf files resulted in them being installed in a user specific folder: C:\Users\johndoe\AppData\Local\Microsoft\Windows\Fonts
.
However, after I copied (only) the *.ttf files for Inconsolata from that folder to C:\Windows\Fonts and rebooted again, the Inconsolata font was visible in NetBeans 10.0. Here is a screen shot showing the use of Inconsolata font:
Notes:
- I don't know why this action was necessary. I'm pretty sure I have installed other fonts for NetBeans in the past that didn't require manually copying them to
C:\Windows\Fonts
. - This issue isn't specific to NetBeans 10.0 for those particular fonts; it also exists in NetBeans 8.2.
- Don't use Windows File Explorer for copying the fonts since it treats
C:\Windows\Fonts
in a special way. Instead, copy the *.ttf files toC:\Windows\Fonts
using copy from the command line: - I'm not sure whether this is a NetBeans issue or a Windows 10 issue, but since other software picked up the new fonts from the user directory perhaps this is a NetBeans bug?
Answered By - skomisa