Jetbrain-Mono 字体

1. Jetbrains Mono 字体

Jetbrains 推出了一款新字体: Jetbrains Mono,还不错。

  • 支持连字
  • 不含中文字符
  • 含 powerline 字符

官网的更新比Github慢

2. VSCode 设置

编辑器和终端都可以设置,打开 setting.json, 加入:

1
2
3
4
5
6
{
"editor.fontFamily": "'JetBrains Mono', 'Courier New', monospace",
"editor.fontLigatures": true,

"terminal.integrated.fontFamily": "JetBrains Mono",
}

默认的0是中间带点的0,要改为带斜杆的0,改成下面的:

1
2
3
4
{
"editor.fontLigatures": "'calt' off, 'zero' on", // 关闭连字
"editor.fontLigatures": "'calt' on, 'zero' on", // 开启连字
}

3. Jetbrains Mono Nerd-Fonts 版

https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/JetBrainsMono/

1
2
3
4
5
aria2c https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Regular.ttf

aria2c https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Italic/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Italic.ttf

aria2c https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Bold/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Bold.ttf
1
2
3
4
5
aria2c https://ghproxy.net/https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Regular.ttf

aria2c https://ghproxy.net/https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Italic/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Italic.ttf

aria2c https://ghproxy.net/https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Bold/complete/JetBrains%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Bold.ttf

VS Code 编辑器和终端都可以设置,打开 setting.json, 加入:

1
2
3
{
"editor.fontFamily": "'JetBrainsMono Nerd Font Mono', 'Courier New', monospace",
}