10

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)

Mik378
  • 21,881
  • 15
  • 82
  • 180

3 Answers3

13

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

Community
  • 1
  • 1
antitoxic
  • 3,746
  • 1
  • 37
  • 46
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.

Daniel
  • 3
  • 2
nurieta
  • 1,615
  • 15
  • 6
3

You can actually browse for your font.

  1. Ctrl + Alt + S

  2. Under the Editor node, click Colors&Fonts.

  3. Select the scheme you want.

  4. Go to Scheme Settings, Font and click the browse button enter image description here 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

eboix
  • 5,113
  • 1
  • 27
  • 38