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.
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 to C:\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?
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".
Run command cd "c:\Windows\Fonts"
Force delete all fira fonts del f/ firacode-regular.ttf
(in my case, I had this font installed before, which is the one I want to use, so I will have to remove it to continue with the explanation)
Copy .ttf font file copy "c:\users\mrconejO07\desktop\firacode-regular.ttf" "c:\windows\fonts"
(in my case these are the paths where my file is and where it must be copied)
In theory it should work in the NetBeans IDE, enter to verify that the font should already appear in the options menu and if you see strange symbols when selecting the font you should ...
Open the .ttf file of the font you want to install and install it, now if it should work correctly.
enter image description here
Related
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.
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 to C:\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?
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".
Run command cd "c:\Windows\Fonts"
Force delete all fira fonts del f/ firacode-regular.ttf
(in my case, I had this font installed before, which is the one I want to use, so I will have to remove it to continue with the explanation)
Copy .ttf font file copy "c:\users\mrconejO07\desktop\firacode-regular.ttf" "c:\windows\fonts"
(in my case these are the paths where my file is and where it must be copied)
In theory it should work in the NetBeans IDE, enter to verify that the font should already appear in the options menu and if you see strange symbols when selecting the font you should ...
Open the .ttf file of the font you want to install and install it, now if it should work correctly.
enter image description here
Is it possible to change that ugly red dot icon on NetBeans tab with index.ftl? It comes with Freemarker plugin and indicates a ftl template.
To change the tab icon of this plugin you can follow the steps bellow:
Go to the Netbeans modules directory. In Linux it is cd $HOME/.netbeans/7.4/module where $HOME is your home directory. You can check where is this directory in different OSs in Netbeans Wiki.
There, you will find a file named org-ftl.jar. Inside this file go to org/ftl and you will see your icon which is named dot.png.
Substitute dot.png file by your desired icon and open Netbeans. Your will see your new icon in your Freemarker tabs.
It is not configurable, but with a little hacking, I think you can do this. There must be a png somewhere in a jar of the freemarker plugin or in one of the core files of netbeans. You would need to unzip the jar, update the picture and then zip it back (to jar).
Here's the plugin sources and Here's the icon. It doesn't look like the one you showed. Maybe you're using some other plugin?
I need some help with NetBeans and a JavaFX project
When I try to install an icon in the title bar of a Windows 7
Desktop application it will not show up
Here are the steps I have used to create and EXE file
Main Class adds the icon with this line of code that works in Eclipse
pStage.getIcons().add(new Image(“file:src/Photos/C.ico”));
Inno Setup 5.0 installed and in Path
the icon is 32 by 32 and 32 bit depth it was created with GreenFish Icon maker
the icon is under Source Package in a folder named Photos
right click project select Properties select Deployment
check Enable Native Packaging
set the path to the icon for Native Package Icons
src/Photos/C.ico
Run Clean and Build
Run Package As EXE
The only other concern I have is this output message
No base JDK Package will use system JRE
I see this as a separate issue so as a bonus question
can I ask for help with how to include the JDK or JRE
so this application is independent of what JRE if any
is installed on the end user machine.
A side note during development if I use C.bmp
in place of the ico file the title bar will display
the bmp. The bmp file will not work at build time.
#James_Duh I have no idea why this works and I doubt you find this FIX anywhere else as I searched the net for why you need to use a bmp and ico file
Here is what I did with NetBeans 8.0.? and JDK1.8.0_51 on Windows 7
in the Main.class I used this line of code
Image ico = new Image("Photos/C.bmp"); NetBeans
Image ico = new Image("file:Photos/C.bmp"); Eclipse
Then in the Photos folder I placed an icon named C.ico 32 by 32
this icon is used to populate the installer EXE file
which when you run the EXE file the icon will be displayed
in the Start Menu
I also checked Desktop Icon and Start Menu shortcut under
Deployment in NetBeans Deployment screen
The Native Package deployment process in Eclipse is a real real PAIN
In the future I will make the switch to NetBeans IDE for this reason alone
I am working using Eclipse Juno Version: 4.2.2 , but frequently I am facing a problem
Problem 1.
And After clicking ok or cross button another screen is appearing.
Problem 2.
If I click no button then the dialog is disappearing and if I choose Yes then the Eclipse is closing.
This is probably a bug in one of the Eclipse plugins that you use. They don't properly clean up resources (colors, fonts) so Eclipse eventually runs out of handles (= the OS won't give Eclipse any more resources).
The short term solution is to restart Eclipse.
If you want to file a bug report, install the Sleak tool and follow the instructions.
For one try,
Please follow the following steps, First close your eclipse.
Go to your Eclipse Folder
you will find "Features" & "Plugins" folder in it.
Open "Features" folder and search for "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
Open "Plugins" Folder and search for "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
Now start your eclipse & try to compile.
It may be possible that while updation it has downloaded improper updation.
I'm talking about Eclipse (3.5 = Galileo), running under Kubuntu 9.10 and I have the Subversive plugin.
I've been moved from Gnome-Ubuntu to Kubuntu, and one side effect was that some fonts are now just too tiny to read.
File names in the explorer have a decent size, but folders are shown in a too-small font, and after having adjusted all the fonts in General|Appearance|Colors and Fonts the folders are unchanged.
Maybe I'm just blind. I'd appreciate it if someone could point me to where I can adjust the font for folders in the Package Explorer
Eclipse is supposed to respect the OS settings but it turns out on Mac OS X the default setting for eclipse is to use small Fonts rather than the standard os fonts. On Mac OS X you can change edit the eclipse.ini file and remove -Dorg.eclipse.swt.internal.carbon.smallFonts restart eclipse and presto you will find that your package explorer looks brilliant with reasonable sized fonts.
To find the eclipse.ini on a Mac, right click on Eclipse.app, then select "show package contents", then you will find the ini file in Eclipse.app/Contents/MacOS/eclipse.ini
It'll use the default GTK+ font settings, as Eclipse is a GTK application. You may have to install Gnome's Appearance preference applet to get a GUI to change it.
Feedback on success:
It seems that in Kubuntu, any fonts not explicitly specified in Eclipse's preferences come from the system. Eclipse is a Gnome app, so its fonts (among other stuff) are controlled by
System Settings | Appearance | GTK+ Appearance
...and there I was able to fiddle the fonts to my satisfaction.
My thanks to Andrew Aylett!