24 Apr 13, 2017 — https://sf.gl/1438

How to use Apple’s SF Mono font in your editor

At WWDC 2016, Apple unveiled a brand new font which was called San Francisco. The font went on to become the default font in macOS and iOS, replacing Helvetica (which replaced Lucida Sans). On watchOS, a special Compact variant of San Francisco, was used.

Later, Apple introduced yet another variant, a monospaced variant, which I think simply looks fantastic – especially on a high-resolution display like the MacBook. It has gone and replaced my previous favourite monospace font, Anonymous Pro.

Weirdly enough, the fonts are not available for selection in macOS, you just can't use San Francisco for editing a document in Pages, for example.

Currently, though, the standard and Compact versions of San Francisco is available on Apple's developer portal, but unfortunately the monospaced version is not.

Fortunately, if you have macOS Sierra, the version is included inside the Terminal.app in macOS.

Here's how you extract the font from Terminal.app and install it on your computer so you can use it in your text editor, for example:

  1. Go to Terminal.app's resources folder:
    1. Right click the Finder icon in the Dock
    2. Click 'Go to Folder...'
    3. Enter this path: /Applications/Utilities/Terminal.app/Contents/Resources/Fonts
    4. Click Go
  2. You'll see a list of fonts in the folder.
    1. Select all of the fonts in the folder.
    2. Right click on them and click 'Open'
  3. A window will pop-up previewing the font. Click Install Font.
  4. You'll perhaps get a window that says there's problems with the fonts. I did too.
    1. Go ahead and click 'Select all fonts'
    2. Click 'Install Checked'
    3. You'll get another dialog
    4. Click 'Install'
  5. Font Book will show the new font as installed. You'll now be able to select the SF Mono font in your editor. ?

Here's a GIF of the whole process:


24 Responses to “How to use Apple’s SF Mono font in your editor”

  1. Ryan

    Thanks Simon! I found SF Mono in my Terminal this morning, liked it, and your tutorial helped me to use it in MacVim. Appreciate it.

  2. Austin

    Wow, thanks!

  3. george

    Thanks man, you helped me lots

  4. Suhaib Abdulghani

    You are the man!

  5. 4faramita

    Thank you so much!

  6. Xavi

    Thanks a lot!

  7. sushpa

    Note that on High Sierra 10.13 (and possibly other versions) you get “serious error” if you try to install the fonts directly from this folder. Copy the fonts to your desktop first and install from there.

  8. Ignacio

    `cp /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/* ~/Library/Fonts`

    Done! :)

  9. Jeff

    Thanks for the tip. The SF fonts are designed for on-screen viewing so Apple hid them from you in any application where you could possibly print a document in the SF font.

  10. Nuno

    Thanks man, I wanted this for Android Studio. That Menlo font is too fat.

  11. Ivan

    I did the steps exactly as described, but at the end the fonts just don’t appear in the font book (or anywhere else)

  12. Ivan

    P.S. It works when installing from another folder, like sushpa user described.

  13. Bruce Norvell

    Upon installing the font, does it work with Microsoft Word for Mac 2016?

  14. Simon Fredsted

    Hi Bruce,

    I can confirm it works with Word for Mac.

    Simon

  15. axxis

    Good job!

  16. Aaron

    Worked great.

    I used this reference for changing for Sublime Text 3 default font:

    https://www.sublimetext.com/docs/3/font.html

  17. Getting Apple’s SF Mono Font in macOS – XCBLOG

    […] to manually install it in order to get it for all other apps. Thank you so much, Simon, for sharing a blog about how to do this. Basically, it’s very easy to install it all over the […]

  18. Brad

    What is that Activity Monitor-style terminal process you’re running in the first image?

  19. Simon Fredsted

    That’s htop :)

  20. Brian

    Thank you!
    Nice font, may replace my long-time favorite, Menlo.

  21. Anthony

    Thanks!!! This was very helpful.

  22. Megan Arther

    I have a question is that how to change the fonts style in Linux I newly used Linux but I don’t know how to change the fonts style in Linux

  23. Bupkis Congenial

    Howdy everyone!
    This is a great sharing about Apple’s SF Mono font with our editor!
    Good luck!

  24. Hemant Kumar Hemant Kumar

    Hemant Kumar

Leave a Comment




Note: Your comment will be shown after it has been approved.