Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Newly installed fonts do not appear in Netbeans

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.

like image 621
Vyacheslav Gorbov Avatar asked Mar 12 '19 01:03

Vyacheslav Gorbov


People also ask

Why are my downloaded fonts not showing up?

To resolve this issue: Click Start, point to Settings, and then click Control Panel. Double-click Fonts. On the File menu, click Fonts to place a check mark.

Why is my installed font not working?

Easiest fix: Download and reinstall the correct version of the file, making sure the font is compatible with your operating system. Locate the font files on your system and remove any duplicates. If that doesn't work, use the font in a different app to see if the font works at all.

Why are installed fonts not showing up in Word?

First, restart your computer, and then test the font again. Some installations are not complete until the computer is restarted. This also makes sure that all applications are restarted after the installation.


2 Answers

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:

setfont

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 to C:\Windows\Fonts using copy from the command line: setFont2
  • 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?
like image 143
skomisa Avatar answered Oct 01 '22 01:10

skomisa


As mentioned in previous answers, NetBeans only shows up fonts that are installed globally (for all users).

If you just use „install“ from the context menu in Explorer or from the font preview window, the font is installed on a per-user basis and is not installed globally.

You don’t have to move the font files manually. There's a clean way to do this: Use Explorer to navigate to the folder where your TTF files are stored. Then right click on a ttf file and choose "Install for all users".

like image 38
René Pöpperl Avatar answered Oct 01 '22 00:10

René Pöpperl