Sublime Forum

How to use all available font weights

#1

I am wondering how to use font weights like medium, as far as I can tell I can only choose between regular, italic and bold

0 Likes

#2

I’m not quite sure what you’re asking here, but generally speaking the font_face setting controls the font that’s used (which can be set on a global, project, file type or file specific manner), and color schemes allow you to provide rules that indicate whether specific text should be bold, italic or (failing both of those) regular.

In this sense, you can use different weights of fonts by specifying them in the font_face setting, such as Source Code Pro Regular or Source Code Pro Medium and the like, and then Sublime will also use the Italic and/or Bold variants of that font as outlined by the color scheme rules.

However, only one font can be used at a time in a single file, so you can’ have some text be regular, other text be medium and so on, if that’s what you’re asking.

1 Like