Reputation: 2840
I have encountered some issues for setting up SF Mono font in VS Code.
Add the following configuration in settings.json
"editor.fontFamily": "SF Mono"
The font seems to be bold, and changing "editor.fontWeight"
to 100
doesn't help.
"editor.fontFamily": "SFMono-Regular"
The texts have regular font weights now, but the comment is still bold.
Try to configure the comment text separately.
"editor.fontFamily": "SFMono-Regular",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment",
"settings": {
"fontStyle": "normal"
}
}
]
}
It seems configuring comment texts to normal
gives them regular font weight.
My question is how to have regular SF Mono weights while having italic comments?
Upvotes: 20
Views: 28878
Reputation: 2332
To use SF Mono in VS Code:
SF Mono
as your preferred font. My config is SF Mono, Menlo, Monaco, 'Courier New', monospace
SF Mono should display properly, with the correct weight italics.
Upvotes: 35