Sublime Forum

Cannot change font size of C files

#1

I just migrated to Sublime Text 3 from 2. I am unable to change the font size of C files using either the option in the Preferences menu, keyboard shortcuts or user defined mouse-wheel scroll action in user key bindings.

I can change the font size of other files like Makefiles, text files, JS files, etc.

I am on Ubuntu 16.04 with ST3 build 3126.

0 Likes

#2

I’m pretty sure it’s because of Settings syntax specific.

Open a c file, and go to Preferences -> Settings - Syntax Specific.

No, I’m pretty sure that you have

// These settings override both User and Default settings for the C syntax
{
    "font_size": 50 // anything, but it's likely it's a number
}

So, just remove the font_size line and save.

Retry in c, it should work.

2 Likes

#3

That was it. Not sure how that setting ended up in my config. Thanks!

1 Like

#4

Pretty sure when you customized your settings, instead of click on Settings, you clicked on Settings Syntax Specific, and edited the file thinking it was the global one.

happy that it helped!

Matt

0 Likes