120

I was looking and could not find an answer on this one. Which is Sublime Text's default font type?

MattDMo
  • 90,104
  • 20
  • 213
  • 210
Uninvited Guest
  • 1,695
  • 4
  • 16
  • 16

5 Answers5

207

On Linux it's Monospace 10 pt. (the exact monospace font used may vary on different Linux distributions or versions), on Windows it's Consolas 10 pt., and on OS X it's Menlo Regular 12 pt.

default platform preferences

(The color scheme is Neon, the syntax highlighting is from PackageDev, and the font is Liberation Mono

This information is found in the Packages/Default directory (where Packages is the directory opened by the Preferences → Browse Packages... menu option), in the Preferences (OS).sublime-settings file where OS is one of Windows, Linux, or OSX.

You should only customize the font (or any other setting) in Packages/User/Preferences.sublime-settings, opened by Preferences → Settings—User, as Settings—Default is over-written on upgrade, and also serves as a backup in case you really screw something up in your user settings. This is the case for both the main Sublime settings as well as those for extra packages/plugins.

These default fonts are the same in Sublime Text 2, Sublime Text 3, and the new version currently in development.

MattDMo
  • 90,104
  • 20
  • 213
  • 210
  • On my Ubuntu linux, it looks like the default is not Monospace. The font looks different (and better) than, say, selecting Monospace in NetBeans. – matanster Nov 12 '14 at 23:00
  • 1
    @matt as I mentioned, the exact font may vary. Also, Sublime uses a custom rendering engine, specifically designed to make fonts look better, so the same font may render differently in different programs. I'm not terribly familiar with NetBeans, but it may have an option to select exactly what font is used when `monospace` is chosen. This font may be different than Sublime's. – MattDMo Nov 15 '14 at 18:39
  • mmmm... I see. I guess monospace is not a real/final font but something that maps to some font somewhere.. – matanster Nov 15 '14 at 22:45
  • @matt yup, you got it. – MattDMo Nov 15 '14 at 23:47
  • I have a quite similar question:'what is the default font of the "build result plane"? And where to set it? ' In my PC, the font is not monospaced and bother me so much. – PaleNeutron Mar 12 '15 at 07:43
  • @PaleNeutron if you have a new question please ask it [here](http://stackoverflow.com/questions/ask). – MattDMo Mar 12 '15 at 14:26
  • That should be "Menlo-Regular" on OSX – Gerry May 14 '15 at 03:09
  • @Gerry *Menlo-Regular* is the name of the font file, the font's name is *Menlo* and the style name is *Regular* (as opposed to *Italic* or *Bold* or *Narrow* or whatever). – MattDMo May 15 '15 at 13:13
  • When I click `Preferences -> Browse Packages` nothing opens or happens. In Packages directory I only have User directory. No `Preferences (OS).sublime-settings` file. Kubuntu 16.10, ST3 – Hrvoje T Nov 28 '16 at 08:07
  • 2
    @HrvojeT I haven't used Kubuntu (just plain Ubuntu), so I'm not sure why that menu option isn't working. The `Default` directory actually doesn't exist physically in `Packages`, it's stored in a `.sublime-package` archive file in `Installed Packages`. If you want to examine its contents, or those of any other default package, you should use [`PackageResourceViewer`](https://packagecontrol.io/packages/PackageResourceViewer). – MattDMo Nov 28 '16 at 15:17
  • @MattDMo I actually Like your color Theme. Can you share the name ? – SaiKiran Sep 15 '17 at 08:57
63

On my system (Windows 8.1), Sublime 2 shows default font "Consolas". You can find yours by following this procedure:

  1. go to View menu and select Show Console
  2. Then enter this command: view.settings().get('font_face')

You will find your default font.

ArtOfWarfare
  • 17,763
  • 14
  • 122
  • 177
Badar
  • 1,312
  • 13
  • 18
28

Yes. You can use Console of Sublime with (Linux):

Ctrl + `

And type:

view.settings().get('font_face')

Get any setting the same way.

ThienSuBS
  • 1,296
  • 15
  • 22
10

To add to MattDMo's answer, you can get the exact font that's used on Linux like so (the example is from Xubuntu 14.04):

$ fc-match Monospace
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
Community
  • 1
  • 1
bmaupin
  • 11,046
  • 4
  • 71
  • 74
  • This is correct. In Kubuntu 16.10 when I set font for 'Fixed width' as Monospace and then set it as DejaVu Sans Mono Book it looks the same in a settings sample preview. Not one pixel changes. `fc-match Monospace` returns `DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"` – Hrvoje T Nov 28 '16 at 08:02
3

The default font on windows 10 is Consolas

Tesohh
  • 41
  • 4