MonoLisaFont / feedback

Send us your feedback regarding the MonoLisa font
84 stars 2 forks source link

[Bug]: vscode use light style invalid #200

Closed shaodahong closed 1 year ago

shaodahong commented 1 year ago

Edition

Plus

What version are you using?

2003

What type of weights are you using?

Default (non-customized)

Operating system

macos 13.0.1

Program

vscode

Display resolution

No response

What happened?

image

when i use

 "editor.fontFamily": "MonoLisa light",

or

 "editor.fontFamily": "MonoLisa-light",

not valid,

bebraw commented 1 year ago

Can you try "MonoLisa Light" and match the naming of Font Book exactly as it is case sensitive?

bebraw commented 1 year ago

Another option would be to refer by number as in https://www.monolisa.dev/faq#how-to-change-the-font-weight-how-to-enable-variable-weight .

shaodahong commented 1 year ago

Can you try "MonoLisa Light" and match the naming of Font Book exactly as it is case sensitive?

I try, and still invalid

shaodahong commented 1 year ago

Another option would be to refer by number as in https://www.monolisa.dev/faq#how-to-change-the-font-weight-how-to-enable-variable-weight .

And Plus version not support font-weight?

bebraw commented 1 year ago

And Plus version not support font-weight?

That's coming from the standard. Each font has a weight associated by a number.

To follow CSS spec, you would need "editor.fontFamily": "'MonoLisa Light'", to match the name visible at Font Book. Is this what you tried exactly? Note the '.

bebraw commented 1 year ago

Another option would be

 "editor.fontFamily": "MonoLisa",
 "editor.fontWeight": 300
bebraw commented 1 year ago

Based on system information, the name is MonoLisa Light Regular so based on that "editor.fontFamily": "'MonoLisa Light Regular'" might do the trick if you don't want to use fontWeight number.

bebraw commented 1 year ago

Another thing to note is that the name changed between 2.003 and 2.005 for some reason. In 2.003 it was MonoLisa Light and in 2.005 it is MonoLisa Light Regular.

bebraw commented 1 year ago

I tested it against plus. As instructed in the FAQ, the minimal configuration for VS Code is the following:

  "editor.fontFamily": "MonoLisa",
  "editor.fontWeight": 300,

It is important not to set "editor.fontVariations": true, unless you are using a variable version.