MonoLisaFont / feedback

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

[Bug]: Script Variant Issue #220

Closed mnco25 closed 1 year ago

mnco25 commented 1 year ago

Edition

Plus

What version are you using?

2.008

What type of weights are you using?

Default (non-customized)

Operating system

Windows 11, 22H2, 22631.1835

Program

VS Code

Display resolution

1920 x 1080

What happened?

I have included an image of my VS Code interface showing the Java program and the settings.json file. I'm experiencing difficulties in applying a script variant from my IDE, and I would greatly appreciate any assistance with this matter. Thank you so much!

image

Additionally, I would like to have the same font format as the one used on the MonoLisa website for my ID.

image

And this is my installed font styles:

image

This is my custom installed zip file:

image

bebraw commented 1 year ago

VS Code supports opentype features out of the box so you should use a non-customized version with it and enable script variant through settings as below:

{
  "editor.fontLigatures": "'ss02' on",
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": "comment",
        "settings": {
          "fontStyle": "italic"
        }
      }
    ]
  }
}

See also https://www.monolisa.dev/faq#how-to-enable-the-script-variant-for-comments-or-function-names .

mnco25 commented 1 year ago

I did that, and this is what happened.

image

Should I put on my Editor: Font Family?

bebraw commented 1 year ago

Should I put on my Editor: Font Family?

That should be like this:

"editor.fontFamily": "MonoLisa",

You can use that editor.fontLigatures portion to enable specific features you want.

bebraw commented 1 year ago

Should it be "MonoLisa Mac Medium Italic"? If I want to use the italic one?

No, just MonoLisa since the editor is doing rest of the work and it's extremely important to use the non-customized version with VS Code.

mnco25 commented 1 year ago

This is what I get for "MonoLisa": image

This is when I used "Monolisa Mac" it gives me the script variant for ONLY the comment. image

https://github.com/MonoLisaFont/feedback/assets/75378716/e7a238b8-96e4-4946-bed4-cdd6d1fae359

bebraw commented 1 year ago

You can validate the font files you have at https://fontdrop.info/ . For non-customized version all stylistic sets are toggleable.

Note that ss02 has been defined only for italic. That's why you have to adjust a theme to match it.

mnco25 commented 1 year ago

I got it now. Thank you so much for your assistance!