Skip to content

How do you specify font weight (bold) in .json theme file? #401

Answered by Akascape
32-git asked this question in Q&A
Discussion options

You must be logged in to vote

@32-git It's easy to change the font weight in json file, you have to change this block of code for any font changes:

},
  "text": {
    "macOS": {
      "font": "SF Display",
      "size": -13
    },
    "Windows": {
      "font": "Roboto",
      "size": -13
    },
    "Linux": {
      "font": "Roboto",
      "size": -13
    }
  },

For bold font weight, just replace the "font": "Roboto", to "font": "Roboto Bold",

Here is the difference:

Hope it helps, you can also try my ThemeMaker program for making custom themes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@32-git
Comment options

Answer selected by 32-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants