Technical

How to get the Operator Mono font working in PhpStorm

This is a blog post on how to use the Operator Mono font in JetBrain products on a Windows machine. It provides a step-by-step guide on purchasing and installing the font, adding it to JetBrains, and adjusting the font size and line spacing

Daniel Plomp

April 14th, 2023

If you're a developer who spends a lot of time coding in JetBrains products like IntelliJ IDEA, WebStorm, or PyCharm, you know how important it is to have a font that's easy on the eyes and makes your code look great. One font that's become increasingly popular among developers is Operator Mono - a beautiful, monospaced font designed specifically for coding.

In this blog post, we'll walk you through how to use Operator Mono in JetBrain products on a Windows machine.

Step 1: Purchase the Operator Mono font

First, you'll need to purchase the Operator Mono font. It's a paid font, but many developers find it worth the investment. You can purchase it from the Hoefler & Co. website.

Step 2: Install the font on your Windows machine

Once you've purchased the font, you'll need to install it on your Windows machine. To do this, simply double-click the downloaded font file and click the "Install" button.

Step 3: Add the font to JetBrains

Next, you'll need to add the Operator Mono font to your JetBrains products. For some reason, it is not enough to install the font on Windows. You will then not see the font in the font selection dropdown in PhpStorm, for example. Here's how I fixed it:

  1. Copy the Operator Mono font files (either .ttf or .otf) to the following directory: C:\Program Files\JetBrains\PhpStorm 2021.2.2\jbr\lib\fonts

    This directory is for PhpStorm on my machine. It could be different for other products.

  2. Open your JetBrains product and go to File > Settings (or Preferences on a Mac).

  3. In the left-hand panel, select "Editor" and then "Font."

  4. Click on the ellipsis button ("...") next to the "Primary font" dropdown and select "Add Fonts."

  5. Select the Operator Mono font from the list of available fonts.

  6. Click "OK" to add the font to your JetBrains product.

Step 4: Adjust the font size and line spacing

Finally, you'll want to adjust the font size and line spacing to your liking. Here's how:

  1. In the "Font" settings window, adjust the "Size" dropdown to your preferred font size.

  2. To adjust the line spacing, click on the "Line spacing" dropdown and select "Custom."

  3. Enter a value for your desired line spacing.

  4. Click "OK" to save your changes.

And that's it! You should now be able to use the beautiful Operator Mono font in your JetBrains products on your Windows machine. Happy coding!

All rights reserved © ZimplerApps 2023