Vansh Khera
Vansh Khera

Reputation: 45

Unable to change font in vs code

I was trying to change my vs code's font to Roboto Mono, I installed it from google fonts https://fonts.google.com/specimen/Roboto+Mono?query=roboto+mono, and then i configured it in my vs code's settings, and instead of that im getting this font

Upvotes: 1

Views: 8044

Answers (3)

Huỳnh Khả Phi
Huỳnh Khả Phi

Reputation: 1

Step 1: Extract the compressed font file. Go to static folder, double click on fonts you want and click Install.

font installation

Step 2: Open Vscode. File -> Preferences -> Settings. In Editor: Font Family sections, please type: Roboto, don't type Roboto Mono or anything else.

typing your font name

Step 3: Restart or reload Vscode. Enjoy!

Upvotes: 0

Natra22
Natra22

Reputation: 11

I know this is a necro of this thread, but for anyone else wondering why you can't install Roboto Mono or potentially other fonts like it, make sure you install the STATIC version of the font.

It seems like VSCode only supports static-type fonts instead of variable fonts, which by default Roboto Mono installs as. You can go into the 'static' folder in your Roboto_Mono.zip to install all files directly as static, remember to replace the old fonts.

Upvotes: 1

MarioG8
MarioG8

Reputation: 5921

Firstly install your font and Try like that:

  "editor.fontFamily": "'Roboto Mono', monospace",

enter image description here

Remember to restart VSCode!

Upvotes: 3

Related Questions