Font face in sublime text 3 using Elementary OS

14,961

Solution 1

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.

Solution 2

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

"font_face": "Courier New",
"font_size": 10
Share:
14,961
Mike_Device
Author by

Mike_Device

Updated on June 15, 2022

Comments

  • Mike_Device
    Mike_Device almost 2 years

    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?

    • Green
      Green over 6 years
      Your links from Dropbox are broken 404 We can’t find what you’re looking for.
    • Mike_Device
      Mike_Device about 6 years
      Yeah, sorry. I've removed them
    • Ashish Patel
      Ashish Patel almost 3 years
      For installing font in ubuntu type command sudo apt install fonts-firacode
  • Mike_Device
    Mike_Device over 9 years
    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 font
  • Mike_Device
    Mike_Device over 9 years
    picture how it was (and I want). picture how it's now
  • Mike_Device
    Mike_Device over 9 years
    I did so, but nothing changed.
  • Mike_Device
    Mike_Device over 9 years
    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 crashes
  • LanceLafontaine
    LanceLafontaine over 9 years
    Try replacing it to "font_face": "Ubuntu Mono", do the italics work?
  • LanceLafontaine
    LanceLafontaine over 9 years
    @Mike_Device I've added to my answer. Let me know if this works.
  • Mike_Device
    Mike_Device over 9 years
    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 :)
  • LanceLafontaine
    LanceLafontaine over 9 years
    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.