I would like to change the font face in Sublime Text.
How can I see what options are available for me to change it to?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityI would like to change the font face in Sublime Text.
How can I see what options are available for me to change it to?
From your Finder, open Applications » Font Book.app. It will show you a list of all fonts installed on your system:
You can use all of these in Sublime Text (however you may want try only Fixed Width fonts for coding) by adding this in your preferences – just substitute the name of the font:
{
"font_face": "Source Code Pro"
}
(based on a suggested edit by @Merlin)
If you want to choose font variants, this becomes more complicated. An example (Sublime Text 3, macOS).
Input Mono Compressed Extra Light Italic
InputMonoCompressed-ExtraLightItalic.ttf
In your settings, you then have to use:
"font_face": "InputMonoCompressed-ExtraLightItalic",
That is, go with the filename minus extension.
The following works for "Input Mono Compressed Extra Light":
"font_face": "InputMonoCompressed ExLight",
The following attempts didn't work:
"font_face": "Input Mono Compressed Extra Light Italic",
"font_face": "InputMonoCompressed ExtraLightItalic",
"font_face": "InputMonoCompressedExtraLightItalic",
"font_face": "InputMonoCompressed ExLightItalic",
// and more permutations
"font_face": "Input Mono Compressed ExLight",
Which is a little maddening considering Input Mono Compressed
did work for the non-'Extra Light' version. I never did discover the right permutations and shortening to get the Extra Light Italic to work.