字体下载地址:https://github.com/vjpr/monaco-bold.
解压monaco-bold-master.zip,以MonacoB.otf字体为例,将字体文件复制至/usr/share/fonts/,
sudo cp ./MonacoB.otf /usr/share/fonts/
然后,更新字体库,
sudo fc-cache -f -v
在VS Code中,选择设置,文本编辑器,字体,打开setting.json ,在editor.fontFamily和terminal.integrated.fontFamily部分添加字体名称’MonscoB’,
{
"git.ignoreLegacyWarning": true,
"editor.accessibilityPageSize": 16,
"editor.fontLigatures": true,
"update.mode": "none",
"editor.fontSize": 18,
"update.showReleaseNotes": false,
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"editor.fontFamily": "'MonacoB', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"terminal.integrated.fontFamily": "'MonacoB', monospace"
}
效果如下,