Sublime Forum

Font-weight: normal in Sublime Text 2

#1

Hello.

No matter which theme I select, no matter what option I tried, I am still not able to view the code fonts in font-weight: normal.

It seems Sublime Text 2 wants us to use bold for some reason.

If I am mistaken and there is a way to change the font-weight, please enlighten me.

I am on OSX, latest Sublime Text 2 deb build.

Thanks.

0 Likes

#2

Sublime Text does not use bold text, except for some keywords may be bolded depending on the color scheme selected. It may be something else going on, such as the anti-aliasing being applied: OS X will sometimes disable subpixel anti aliasing when an external LCD is plugged in. You may want to post a screenshot of what you’re seeing.

0 Likes

#3

Sure.

d.pr/i/rQ0F

It’s always bold.

Here is the config.

d.pr/i/lzDS

Thanks for the reply

0 Likes

#4

That appears to be correct for 14pt Menlo to me - if you change the font name to “Menlo Bold” you should see the bolded variant.

The best reference for comparison is to use TextEdit, set the font face and size to match, and then change the color scheme in Sublime Text to a black-on-white one: the font rendering should then match exactly.

0 Likes

#5

This is really bizarre.

Things look great on my MBP.

The “always bold” issue appears on the iMac at work, but not on my MBP at home.

Thing is, they both share the same Sublime Text configuration (synced via DropBox).

Thank you anyway :smile:

0 Likes

#6

I have the same deal. Using the default colour scheme, just installed on my macbook, it looks like OP’s screenshot.
I have been using it for months on PC with the same theme and the heavier font weight on my laptop makes me feel like I need glasses.

You’re not alone brother.

0 Likes

#7

That was the first thing I hit with Sublime, but I was ecstatic to find out it’s simple to customize.

You just want to throw this into your user settings file ( Preferences > Settings - User ):

// Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias",
// "subpixel_antialias", "no_round" (OS X only) and "directwrite" (Windows only)
"font_options":  "gray_antialias","subpixel_antialias" 	],

Or something like that. I’m on the Windows version in Boot Camp right now but just play around with the options to get the aliasing just right.

0 Likes

#8

This worked for me!

"font_options": "gray_antialias"],

in the sublime-settings preference file.

I guess “gray” just means to tone down the anti-aliasing. The bold was driving me nuts, too.

0 Likes

#9

I think gray antialiasing just means normal antialiasing (full pixel) as opposed to subpixel antialiasing. Subpixel antialiasing often makes light text on a dark background appear too bold. If you want to turn off subpixel antialiasing system wide instead of just in Sublime, you can uncheck System Preferences > General > Use LCD font smoothing when available (you’ll have to restart sublime to see the changes).

0 Likes