Font face in sublime text 3 using Elementary OS
Asked Answered
T

2

6

I have a problem. Earlier I used Ubuntu, but now I've installed an Elementary OS to my notebook and then installed a sublime text 3. But I don't like a font_face in new OS. It is not so good, like it was in Ubuntu, e.g. Zero sign is not striped. And also keywords is not italic like. Can you help me to fix it?

Tinder answered 30/11, 2014 at 15:38 Comment(3)
Your links from Dropbox are broken 404 We can’t find what you’re looking for.Beadledom
Yeah, sorry. I've removed themTinder
For installing font in ubuntu type command sudo apt install fonts-firacodeBuffum
B
14

Open Preferences > Settings - User and add the following:

"font_face": "Ubuntu Mono", "font_size": 10, "font_options": [],

If this doesn't work, try changing the font. There are plenty of choices at Google Fonts. You just need to add the desired fonts to your collection, click the download icon in the top right, and install the .ttf's on your system, which should be as easy as opening the files and clicking on install.

Monospace is the default font in most Linux systems, but you can change it to whatever you like. However, I personally prefer the "Ubuntu Mono" font that is installed by default.

the font_option array should be blank. Sublime Text lets you add options like "no_bold", "no_italic", "no_antialias", etc...

Lastly, make sure you are editing the Settings - User page and not the Settings - Default page.

Bespectacled answered 30/11, 2014 at 16:22 Comment(6)
I did so, but nothing changed.Tinder
May be I should use another font. When I type in sublime console view.settings.get('font_face') in Windows. I received: 'Consolas'. Here -- 'Monospase'. But when i use "font_face": "Consolas" -- always crashesTinder
Try replacing it to "font_face": "Ubuntu Mono", do the italics work?Bespectacled
@Tinder I've added to my answer. Let me know if this works.Bespectacled
Thank you very much. I've downloaded Ubuntu Mono font and installed it. It's working. This font is a bit unusual, but it's not a problem, because now I can install another. Thank you again :)Tinder
I'm happy its fixed!Ubuntu Mono is a bit strange at first, but it's become one of my favorite fonts. You can explore lots of other ones on the Google fonts page I linked to.Bespectacled
I
2

From here, changing the font can be done via adding these lines to Preferences/Settings - User:

"font_face": "Courier New",
"font_size": 10
Indecency answered 30/11, 2014 at 15:45 Comment(2)
Thanks, but it's not what I want. I always used native font_face, but in Windows, Ubuntu, XUbuntu it was better, because word like a "function", "var" etc was is italic. So I want to fix it, but save native fontTinder
picture how it was (and I want). picture how it's nowTinder

© 2022 - 2024 — McMap. All rights reserved.