Skip to content

Zed – How to Use Custom Font

Zed Custom Font

A custom font can make your coding experience more comfortable and even improve readability.

In this quick guide, Iโ€™ll show you how to set up a custom font in Zed.

Default Zed font vs JetBrains Mono font

Letโ€™s dive in! ๐Ÿคฟ

๐Ÿ“น Since weโ€™re talking about visual things, I recommend watching this video as well

Download and Install a Custom Font

First, download the font you want to use. You can find many great options at Google Fonts, but for this tutorial, Iโ€™ll be using the JetBrains Mono โ€” a font designed specifically for developers.

Installing the Font (by Operating System)

๐Ÿ“Œ Windows
โ€“ Unzip the archive.
โ€“ Select all font files, right-click, and choose Install.

๐Ÿ“Œ macOS
โ€“ Unzip the archive.
โ€“ Select all font files and double-click Install Font.

๐Ÿ“Œ Linux
โ€“ Extract the font files to ~/.local/share/fonts (or /usr/share/fonts for system-wide install).
โ€“ Run the following command to refresh the font cache:

fc-cache -f -v

๐Ÿ’กGood to know

If Zed was open when you installed the font, restart it to ensure it recognizes the new font.

Set the Custom Font in Zed

Now, letโ€™s configure Zed to use the new font!

1๏ธโƒฃ Open the settings.json file:

  • Press CTRL + ALT + , (Windows/Linux) or CMD + OPTION + , (macOS).

2๏ธโƒฃ Add or update the following lines in your settings.json file:

  "buffer_font_family": "JetBrains Mono",
  "buffer_font_features": { "liga": true },
  "ui_font_family": "JetBrains Mono",

  • buffer_font_family โ€” Sets the font used for the editor text (code/content area).
  • buffer_font_features โ€” Enables or disables specific font features for the editor text; "liga": true turns on ligatures.
  • ui_font_family โ€” Sets the font used for interface elements (tabs, menus, panels, labels).

Thatโ€™s it! Youโ€™ve successfully set up a custom font in Zed ๐ŸŽ‰

Got a favorite programming font? Let me know in the comments!

Happy building! ๐Ÿ’œ


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments