How to use Terminus (TTF) font in Microsoft Visual Code Editor

I'm successfully using Terminus TTF font in Visual Studio. I downloaded:

enter image description here

How to use Terminus font in Visual Studio Code? What is the name of the font. I tried:

  • Terminus
  • Terminus (TTF)
  • Terminus TTF

Where can one know the font name to use in editors like Sublime, Studio code, ...enter image description here

1

3 Answers

All I needed was to escape fontFamily value:

"editor.fontFamily": "Terminus \\(TTF\\)",
"editor.fontSize": 16,
1

The answer of @broadband and the comment by @FlorianCastellane both didn't work for me using VSCode 1.30 and later.

I have found out that font names can be written within single quotes which in the end enabled Terminus for me.

"editor.fontFamily" : "'Terminus (TTF) for Windows', Consolas"

For me (under Linux) as well as installing the TTF version of the font, I also had to adjust the line height as the lines were spaced too far apart:

"editor.fontFamily": "'Terminus (TTF)', 'Droid Sans Mono', monospace",
"editor.fontSize": 16,
"editor.lineHeight": 18,
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like