Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring a font variant in IntelliJ

Is there a way to force IntelliJ to use a specific font variant, e.g. Source Code Pro Light? As far as I know, IntelliJ always assume the regular variant, and doesn't allow one to specify what to be used as bold and italic.


I have probably not been clear. There is a way to select a fixed variant (bold and italic), but IntelliJ decides what that variant should be. As an example, consider the fact I want to configure IntelliJ to use the following fonts:

  • Normal Text -> Source Code Pro Light (and not Regular)
  • Bold -> Source Code Pro Regular (and not Bold)
  • Italic -> Source Code Pro Powerline Italic (not the same font)
like image 778
Hugo Sereno Ferreira Avatar asked Aug 04 '14 02:08

Hugo Sereno Ferreira


People also ask

How do I configure fonts?

Go to Format > Font > Font. + D to open the Font dialog box. Select the font and size you want to use. Select Default, and then select Yes.

How do I add fonts to IntelliJ?

1. Unzip the archive and install the font: mac:Select all font files in the folder and double-click the “Install Font” button. window:Select all font files in the folder, right-click any of them, then pick “Install” from the menu.

How do I change the font color in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Color Scheme Font. Select the Use color scheme font instead of the default checkbox.

Which font is used in IntelliJ IDEA?

JetBrains Mono font is used by default for the Editor.


1 Answers

If you are on Mac, you can remove (or disable) other font variants in the Font Book app. I left only Fira Code Light, restarted IDEA and got it working. A not ideal solution, but at least the fonts are now thin together with subpixel antialiasing. I have found related issues on IDEA's youtrack:

  • https://youtrack.jetbrains.com/issue/IDEA-109338
  • https://youtrack.jetbrains.com/issue/IDEA-164392
  • https://youtrack.jetbrains.com/issue/IDEA-92825

Please vote :)

like image 103
Leszek Gruchała Avatar answered Sep 30 '22 21:09

Leszek Gruchała