Change font into IntelliJ 10 / 11
Solution 1
Additionally to copying fonts in ..\jre\lib\fonts
You need to change a java anti-aliasing setting.
1) Add the option:
-Dawt.useSystemAAFontSettings=on
Linux
<<jetbrains-product-dir>>/bin/idea.vmoptions
There might be additional settings required for Linux and OpenJDK. Check the referenced links.
Windows
...\JetBrains\<<product-dir>>\bin\<<productname>>.exe.vmoptions
2) You then need to restart the IDE.
3) When you are selecting a font (Settings>Appearance>Font
) you
should uncheck "Show only monospaced fonts" in the little popup
window that appears.
4) You'll be now able to see and choose Inconsolata or any other previously hidden font. Set the font size and line-height according your preference.
Reference
- How do you enable anti aliasing in arbitrary Java apps?
- http://gleamynode.net/articles/2280/
- http://youtrack.jetbrains.net/issue/IDEA-57233?query=inconsolata
Solution 2
You can actually browse for your font.
Ctrl + Alt + S
Under the Editor node, click Colors&Fonts.
Select the scheme you want.
Go to Scheme Settings, Font and click the browse button to select a new font family.
If this is what you already did, and you couldn't find the font, even when you browsed for it, then you can install your font by running the setup.exe file that usually comes with it and try again.
Source: http://www.jetbrains.com/idea/webhelp/editor-colors-and-fonts.html#scheme
Solution 3
I think you forgot to point out that you need to save the default scheme as something else in order to modify it.
So under File -> Settings -> Editor node -> Colors & fonts, select scheme, save with other name and then modify fonts... etc.
Mik378
Founder of "WealCome" company, aiming to build complex softwares cleanly with TDD and Clean Architecture mindsets. https://wealcomecompany.com
Updated on June 15, 2022Comments
-
Mik378 almost 2 years
I try to change font for IntelliJ IDE with another monospaced font like Inconsolota.
I put Inconsolata.ttf (I use Windows) on the directory :
C:\Program Files\Java\jdk1.7.0_01\jre\lib\fonts
Why doesn't IntelliJ make it available ? Is it the wrong path ?
(I precise that I well checked that IntelliJ uses this JDK and not another one)
-
hertzsprung over 11 yearsWhy isn't Incosolata treated as a monospace font? I use it monospaced elsewhere (such as xterm)