JetBrainsMono/README.md

126 lines
5.3 KiB
Markdown
Raw Normal View History

2020-01-15 13:22:23 +03:00
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
2022-01-14 20:31:09 +03:00
# JetBrains Mono: a typeface made for developers
![Alt text](images/main-img@2x.png)
2022-01-14 20:31:09 +03:00
JetBrains Mono is available as a standalone download, and is also bundled in all JetBrains IDEs. Discover more font features & design on its [web page](https://jetbrains.com/mono/).
2022-01-14 20:31:09 +03:00
Default version of JetBrains Mono comes with OpenType features and ligatures (which can always be toggled on & off in the settings). If your IDE doesnt support OpenType, use a special version of the font — [JetBrains Mono NL](https://github.com/JetBrains/JetBrainsMono/tree/master/fonts/ttf), which doesnt include any ligatures.
2020-01-14 18:05:05 +03:00
# **Installation**
2022-01-14 20:31:09 +03:00
### **JetBrains IDEs**
2020-01-14 18:05:05 +03:00
The most recent version of JetBrains Mono ships with your JetBrains IDE starting with v2019.3.
2022-01-14 20:31:09 +03:00
Select JetBrains Mono in the IDE settings: go to `Preferences/Settings``Editor``Font`, and then select JetBrains Mono from the **Font** dropdown.
### Brew (macOS only)
2020-01-14 18:05:05 +03:00
2020-02-10 13:51:17 +03:00
1. Tap the font cask to make the Jetbrains Mono font available :
2020-02-10 13:51:17 +03:00
```console
brew tap homebrew/cask-fonts
```
2. Install it using the `font-jetbrains-mono` cask:
2020-02-10 13:51:17 +03:00
```console
2020-12-13 03:52:12 +03:00
brew install --cask font-jetbrains-mono
2020-02-10 13:51:17 +03:00
```
2022-01-14 20:31:09 +03:00
### Manual installation
_On Mac/Windows_:
1. [Download font](https://github.com/JetBrains/JetBrainsMono/releases/latest).
2020-01-14 18:05:05 +03:00
2. Unzip the archive and install the font:
2022-01-14 20:31:09 +03:00
- _Mac_. Select all font files in the folder and double-click them. Click the **Install Font** button.
- _Windows_. Select all font files in the folder, right-click any of them, then pick **Install** from the menu.
2022-01-19 12:50:22 +03:00
📝 Note: If you have previously installed JetBrains Mono, please uninstall all previous versions to exclude conflicts and errors in rendering.
_On Linux_:
Open a terminal and run the following:
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/install_manual.sh)"
```
2020-02-10 13:51:17 +03:00
Once JetBrains Mono is installed in your OS, you are ready to configure the editor.
2022-01-14 20:31:09 +03:00
2020-01-14 18:05:05 +03:00
### **Visual Studio Code**
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
1. From the **File** menu (**Code** on Mac) go to `Preferences` → `Settings, or use keyboard shortcut <kbd>Ctrl</kbd>+<kbd>,</kbd> (<kbd>Cmd</kbd>+<kbd>,</kbd> on Mac).
2. In the E**ditor: Font Family** input box type `JetBrains Mono`, replacing any content.
3. To enable ligatures, go to **Editor: Font Ligatures**, click **Edit in settings.json**, and copy this line `"editor.fontLigatures": true` into json file.
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
### **More ways to install**
- [Chocolate](https://github.com/JetBrains/JetBrainsMono/wiki/Other-ways-to-install#through-chocolatey-windows-only)
- [ChromeOS terminal](https://github.com/JetBrains/JetBrainsMono/wiki/Other-ways-to-install#chromeos-terminal)
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
## Font Styles
There are 8 font styles available in JetBrains Mono, from Thin to ExtraBold, each coming with its own _italic_ version.
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
![Alt text](images/font-styles@2x.png)
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
## Font Features
2020-01-14 18:05:05 +03:00
2022-01-14 20:31:09 +03:00
### Increased x-height
While characters remain standard in width, the height of the lowercase is maximized. This approach keeps code lines to the length that developers expect, and it helps improve rendering in small size, since each symbol occupies more pixels.
![Alt text](images/ff-increased-height@2x.png)
### Distinctiveness of symbols
![Alt text](images/ff-distinctiveness-of-symbols@2x.gif)
## Ligatures for Code
A ligature is a character consisting of two or more joined symbols. Traditionally, it was introduced as a space-saving technique in printed texts. In code, this technique is adopted to show operators and is used mainly for two purposes:
1. To **reduce noise** by merging symbols and removing details so the eyes are processing less:
![Alt text](images/ligatures-1@2x.gif)
2. To balance whitespace more efficiently by shifting the glyphs in certain cases:
2022-01-14 20:31:09 +03:00
![Alt text](images/ligatures-2@2x.gif)
📝 Note: if your IDE doesnt support OpenType features and ligatures, use [JetBrains Mono NL](https://github.com/JetBrains/JetBrainsMono/tree/master/fonts/ttf) instead.
## Basic Character Set
![Alt text](images/character-set@2x.png)
You can find full JetBrains Mono character set on our [wiki page](https://github.com/JetBrains/JetBrainsMono/wiki/List-of-supported-symbols).
2022-01-19 10:35:45 +03:00
## Building from source files
The source files can be found in the *"Source"* folder. To open them you will need Glyphs app.\
To build the `.ttf`, `.otf`, `woff2` & variable `.ttf` you will need:
- install **gftools** `pip install gftools` (requires python 3.9.5 or higher on BigSur)
- Navigate to **…JetBrainsMono/sources/** in Terminal app.
2022-01-19 12:50:22 +03:00
- Type `gftools builder config.yaml` in Terminal and run it.
- After the script is complete the files can be found in *Fonts* folder.
2020-01-14 18:05:05 +03:00
## License
2020-10-23 13:19:20 +03:00
JetBrains Mono typeface is available under the [OFL-1.1 License](https://github.com/JetBrains/JetBrainsMono/blob/master/OFL.txt) and can be used free of charge, for both commercial and non-commercial purposes. You do not need to give credit to JetBrains, although we will appreciate it very much if you do.
2020-08-27 16:00:21 +03:00
The source code is available under [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0)
2020-01-14 18:05:05 +03:00
## Credits
**Type designer**\
Philipp Nurullin
**Team lead**\
Konstantin Bulenkov
2020-01-14 18:07:08 +03:00
**Thanks to**\
2020-01-14 18:05:05 +03:00
Nikita Prokopov\
Eugene Auduchinok\
2020-04-08 19:33:35 +03:00
Tatiana Tulupenko\
2020-01-14 18:05:05 +03:00
Dmitrij Batrak\
2020-01-19 19:54:53 +03:00
IntelliJ Platform UX Team\
2020-01-14 18:07:08 +03:00
Web Team