Sublime Forum

Why I can't set Sublime Text 3 font on Linux?

#1

Hi, I use Sublime Text 3 and Deepin OS. I installed Source Code Pro font (.tff files) to /usr/share/fonts/source-code-pro/ directory. I can set this font in other text editors like Gedit, but I can’t set this font in Sublime Text 3. I wrote this command:

{
	"color_scheme": "Packages/Future Funk - Color Scheme/Future Funk (Blue Monday).tmTheme",
	"ignored_packages":
	[
		"Vintage"
	],
	"tab_size": 2,
	"theme": "Spacefunk (Blue Monday).sublime-theme",
	"translate_tabs_to_spaces": true,
        "font_face":"Source Code Pro",
        "font_size": 10
}

But it’s not working. I can’t use Source Code Pro font.

0 Likes

#2

The font face that you specify needs to include the full name of the font variant that you want, not just the name of the font itself.

For example (from my own configuration):

	"font_face": "Source Code Pro Medium",
	"font_size": 12,

Of course, you would need to pick the variant that looks best for you; Light, Black, Bold, Regular, etc.

0 Likes