Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Sublime Text 2 Font Weight

The normal font-weight in Sublime Text was always bold.

enter image description here

Now it is really thin and i cant work with that. Can I change it back to what it was before ?

enter image description here

I have not changed anything, it just changed after i rebooted my macbook.

Thanks, Mottenmann

like image 874
Mottenmann Avatar asked Sep 28 '13 12:09

Mottenmann


People also ask

How do I make text bold in Sublime Text?

Bold Text. Use double asterisks to show text as bold, or strong.

How do I make the font bigger in Sublime Text?

If you want to change the font size then simply follow. Preferences-> Default File preferences. After find Font properties like font Courier New 12 we (recommend to use CTRL+F) then change size of it. Click save and instantly you can see the changes.

Why font weight property is not working?

font-weight can also fail to work if the font you are using does not have those weights in existence – you will often hit this when embedding custom fonts. In those cases the browser will likely round the number to the closest weight that it does have available. For example, if I embed the following font...


2 Answers

Same thing happened to me. Sublime Text 2 suddenly changed to having a super thin font on my Mac.

Add

Mac:

"font_options":["no_round"], 

PC:

"font_options":["bold"], 

to

enter image description here

enter image description here

like image 66
Chris Redford Avatar answered Oct 12 '22 13:10

Chris Redford


A simpler approach would be to simply add the weight name to the font_face (ie for medium use "Medium", for light use "Light", etc)

Before:

{
    "font_face": "Source Code Pro",
    "font_size": 16.0,
}

After:

{
    "font_face": "Source Code Pro Light",
    "font_size": 16.0,
}

The font "Source Code" comes in ExtraLight, Light, Medium, Regular, etc. And if you want use the Light version, appending the font-weight along with the font_face will work.

p.s. try Source Code Pro or Inconsolata. They are the best coding fonts till date.

like image 44
Satish Kumar Avatar answered Oct 12 '22 12:10

Satish Kumar