DEV Community

Muhammad Asif
Muhammad Asif

Posted on

Setting up JetBrains Mono font on Ubuntu is straightforward

  1. Open Terminal:

    • Press Ctrl + Alt + T to open a terminal window.
  2. Navigate to the Font Directory:

    • Use the cd command to navigate to the directory where your font files are located. In your case:
     cd /home/asif/Downloads/JetBrainsMono-2.304/fonts/ttf
    
  3. Copy Font Files to System Fonts Directory:

    • Copy the font files to your system's TrueType fonts directory using the sudo cp command:
     sudo cp *.ttf /usr/share/fonts/truetype/
    
  4. Update Font Cache:

    • Update the font cache so that Ubuntu recognizes the new fonts:
     sudo fc-cache -f -v
    
  5. Verify Installation:

    • Open a text editor or any application where you can select fonts.
    • Look for "JetBrains Mono" in the font selection list. If you see it, then the font has been successfully installed.

After completing these steps, you should have JetBrains Mono font installed and ready to use on your Ubuntu system.

Top comments (2)

Collapse
 
cleverclover profile image
Om Biradar • Edited

I think you should add that *.ttf files can be placed in ~/.fonts directory if you want to install it for your user only.

Also to avoid the clutter in the usr/share/fonts/truetype you can better create a folder for JetBrains fonts before moving the *.ttf files over there.

Collapse
 
ahmed_soliman_35f81bfef23 profile image
Ahmed Soliman

It works great,Thanks.