Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use IBMPlexMono-Italic font on VSCode for Windows 10?

I've installed (from Google fonts) and configured this one on VSCode of macOS, then it works well.

"editor.fontFamily": "'IBMPlexMono-Italic', 'Fira Code', sans-serif",

But I do the same thing on Windows 10, with the newest version of VSCode, but it doesn't work. Already tried with Github build source, it doesn't work also.

How to solve this problem? Thanks.

like image 652
Vuong Avatar asked Oct 15 '25 18:10

Vuong


2 Answers

In Windows 10, the font names are different. For IBMPlexMono, you need to change it to IBM Plex Mono. See below:

Change this: "editor.fontFamily": "'IBMPlexMono', 'Fira Code', sans-serif",

to: "editor.fontFamily": "'IBM Plex Mono', 'Fira Code', sans-serif",.

Kindly note, some of the fonts do not work (correctly) on VS Code.

The italic based font do not work at the moment. These are the lists of working font types in their right name for VS Code.

IBM Plex Mono Bold
IBM Plex Mono ExtraLight
IBM Plex Mono Light
IBM Plex Mono Medium
IBM Plex Mono (Same as Regular)
IBM Plex Mono Semi Bold
IBM Plex Mono Thin
like image 80
codejockie Avatar answered Oct 18 '25 11:10

codejockie


Here's the answer for getting the italics to work correctly in VS Code.

To set up italics correctly reference the following config:

"editor.tokenColorCustomizations": {
  "[*Light*]": {
    "textMateRules": [
      {
        "scope": "ref.matchtext",
        "settings": {
          "foreground": "#0E030E"
        }
      },
      {
        "scope": [
          "comment",
          "comment.block.documentation"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          "keyword",
          "storage",
          "italic"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          "entity.other.attribute-name",
          "variable.language"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      }
    ]
  },
  "[*Dark*]": {
    "textMateRules": [
      {
        "scope": "ref.matchtext",
        "settings": {
          "foreground": "#FEFAFF"
        }
      },
      {
        "scope": [
          "comment",
          "comment.block.documentation"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          "keyword",
          "storage",
          "italic"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          "entity.other.attribute-name",
          "variable.language"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      }
    ]
  }
},
like image 42
Aaron Kantrowitz Avatar answered Oct 18 '25 11:10

Aaron Kantrowitz