monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

Fontfamily not activating in VSCode?

Open PsySolix opened this issue 1 year ago • 8 comments

So I first followed the readme, for MACOSX & ran the bash file. Then verified if I have all the fonts in Font Book -> they are there.

Using the following options in VSCODE:

"editor.fontLigatures": true, "editor.fontFamily": "Monaspace, Arial, serif", // for testing

Also tried with the Monaspace _____

Result

Seeing Arial being used in the editor... Is there something that I'm missing?

Thanks in advance!

PsySolix avatar Nov 10 '23 09:11 PsySolix

Solution:

Okay so for people having the same "oopsie" moment as me.. the _____ is the name of the variant of the package. So for VSCode you need:

"editor.fontFamily": "'Monaspace Neon', serif", (or Argon or ...)

PsySolix avatar Nov 10 '23 09:11 PsySolix

FWIW, for me it only works by specifying the full Font name, e.g. Monaspace Neon Var image

"editor.fontFamily": "'Monaspace Neon Var', monospace"

roel4ez avatar Nov 10 '23 11:11 roel4ez

Yeah, I was thinking I would specify just Monaspace and then it would mix and match accordingly. Seems that is not the case: https://github.com/githubnext/monaspace/issues/6

balupton avatar Nov 10 '23 15:11 balupton

See one identified possible root cause at #111.

athompson-merlin avatar Nov 15 '23 16:11 athompson-merlin

Whoops, GH auto closed this when I merged #125

We'll produce a new build soon and check that this (and related issues) are solved.

idan avatar Nov 30 '23 02:11 idan

Just wanted to add (in case someone else was stuck with the same problem as me), that the fonts only appeared in vscode for me after closing and reopening the window. Just hitting Ctlr+Shift+P and Developer: reopen window was not enough

akselerando avatar Dec 15 '23 11:12 akselerando

Do you guys know how to use different variants like 'medium' on VS Code. Using it like this Monaspace Neon Var Medium doesn't work.

sujeewasandeepa avatar Mar 06 '24 11:03 sujeewasandeepa

Try adding this line to settings.json:

"editor.fontWeight": "medium",

yvvt0379 avatar Mar 08 '24 06:03 yvvt0379

I'd recommend using the static Monaspace fonts in VS Code, as it doesn't fully support variable fonts yet. That should allow you to set the font weight as normal.

heathercran avatar May 21 '24 23:05 heathercran