Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change font into IntelliJ 10 / 11

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)

like image 963
Mik378 Avatar asked Dec 31 '11 22:12

Mik378


People also ask

How do I change the font in IntelliJ?

To use a different font in the console: Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Console Font. Select the Use console font instead of the default checkbox.

What is IntelliJ default font?

JetBrains Mono font is used by default for the Editor.

How do I change font size in IntelliJ editor?

If you need to quickly change the font size while in the editor, press Ctrl+Alt+S to open the IDE settings, go to Editor | General, and select Change font size with Command+Mouse Wheel or Change font size with Control+Mouse depending on your operating system.

Which font is good for IntelliJ?

JetBrains, known best for Kotlin, and IntelliJ-based IDEs, introduced a new creation. This time, they are dipping their toes into typography design. JetBrains Mono is an open-source, monospaced font specifically designed for developers.


2 Answers

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
like image 144
antitoxic Avatar answered Sep 30 '22 16:09

antitoxic


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

like image 25
eboix Avatar answered Sep 30 '22 17:09

eboix