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?

slhck
  • 223,558
  • 70
  • 607
  • 592
tadasajon
  • 317
  • 3
  • 13

1 Answers1

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.

slhck
  • 223,558
  • 70
  • 607
  • 592
  • What syntax allows you to specify Regular, ExtraLight, etc.? – Merlin Apr 04 '19 at 15:45
  • @Merlin Apparently not possible: https://forum.sublimetext.com/t/request-monospace-font-family-typeface-variants/34038 – slhck Apr 04 '19 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 05 '19 at 17:14
  • Good to know, @Merlin! Feel free to suggest an edit to the answer to reflect that. – slhck Apr 05 '19 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 09 '19 at 07:25