What is the default font of Sublime Text?

FontsSublimetext2Sublimetext3Sublimetext

Fonts Problem Overview


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

Fonts Solutions


Solution 1 - Fonts

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.

Solution 2 - Fonts

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.

Solution 3 - Fonts

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

Ctrl + `

And type:

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

Get any setting the same way.

Solution 4 - Fonts

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"

Solution 5 - Fonts

The default font on windows 10 is Consolas

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionUninvited GuestView Question on Stackoverflow
Solution 1 - FontsMattDMoView Answer on Stackoverflow
Solution 2 - FontsBadarView Answer on Stackoverflow
Solution 3 - FontsThienSuBSView Answer on Stackoverflow
Solution 4 - FontsbmaupinView Answer on Stackoverflow
Solution 5 - FontsTesohhView Answer on Stackoverflow