Sublime Text 3字体更换及谷歌字体使用问题咨询
Hey there! Let's work through your Sublime Text 3 font problems together.
Fixing Font Recognition Issues
You’re right about the basic path (Preference->Setting->User), but if your fonts aren’t showing up, here are the most common fixes:
- Double-check the font name spelling: Many fonts have internal names that don’t match their display name. For example, a font might show up as "Menlo Bold" in your system font list, but its actual name is just "Menlo". To find the correct name:
- On Windows: Open Control Panel > Fonts, right-click the font, select "Properties", and look at the "Name" field under the General tab.
- On Mac: Open Font Book, select the font, and check the font name at the top of the window.
- Plug this exact name into your
font_facesetting, like"font_face": "Menlo".
- Ensure the font is properly installed: Don’t just download the font file—make sure it’s installed in your system.
- Windows: Right-click the font file and select "Install".
- Mac: Double-click the font file, then click "Install Font".
- Validate your JSON syntax: A tiny syntax error can break your settings. Make sure your User settings file looks like this (note the commas and matching quotes):
{ "font_size": 14, "font_face": "Menlo" }
Every key-value pair except the last one needs a trailing comma, and all quotes must be English double quotes.
Using Google Fonts in Sublime Text 3
Absolutely—you can use any Google Font you want! Here’s how:
- Go to the Google Fonts platform, pick the font you like, and click "Download family" to get the zip file.
- Unzip the file, and locate the font files (they’ll usually be
.ttfor.otfformats). - Install these font files to your system using the same steps mentioned above.
- Add the font’s exact name to your Sublime User settings as
font_face, save the file, and restart Sublime Text. Your new font should be working!
If you still run into issues, try restarting Sublime Text—sometimes the app needs a refresh to pick up newly installed fonts.
内容的提问来源于stack exchange,提问作者user6818018
相关产品推荐
相关产品推荐

