5

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?

3
  • Sublime Text can use the same fonts as on your OS
    – slhck
    Dec 26, 2013 at 16:41
  • Great. How can I determine what fonts are available on my OS, which is Mac - Mavericks, incidentally.
    – tadasajon
    Dec 26, 2013 at 16:46
  • Answering my own question - on Mac, use the Font Book app.
    – tadasajon
    Dec 26, 2013 at 16:51

1 Answer 1

6

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"
}

Font Variants

(based on a suggested edit by @Merlin)

If you want to choose font variants, this becomes more complicated. An example (Sublime Text 3, macOS).

  • Font name in Font Book: Input Mono Compressed Extra Light Italic
  • Font filename: 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.

5
  • What syntax allows you to specify Regular, ExtraLight, etc.?
    – Merlin
    Apr 4, 2019 at 15:45
  • @Merlin Apparently not possible: forum.sublimetext.com/t/…
    – slhck
    Apr 4, 2019 at 15:49
  • 1
    I experimented with typing exactly as shown in fontbook, with spaces between words removed. This worked for example: ‘InputMonoCondensed ExtraLight’. The spacing or lack of was important, but chars were all from Font Book name.
    – Merlin
    Apr 5, 2019 at 17:14
  • Good to know, @Merlin! Feel free to suggest an edit to the answer to reflect that.
    – slhck
    Apr 5, 2019 at 19:00
  • @Merlin Your initial edit was rejected, but I took parts of it and reordered it to put the actual answer on top.
    – slhck
    Apr 9, 2019 at 7:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .