Sublime Forum

Different default font size *per-syntax*, but still scalable?

#1

I’ve got a couple different fonts I prefer to use for different languages. However, their point sizes are different, so I regularly need to increase/decrease font size when switching between the projects I’m working on.

If I set font size in the syntax-specific settings, then I lose the ability to increase/decrease the font size/scale on the fly as needed from time to time when my eyes are strained.

So I’m wondering: could there be some way to maintain a different default font size per-syntax, and simply scale the relative font sizes for each syntax larger/smaller, and reset them all to their own defaults using the menu commands/shortcuts? If not, is there a package I could install that would make this possible?

0 Likes

#2

I don’t know how well it tracks your use case, but the following plugin provides versions of the font sizing commands that apply only to the current file instead of every open tab.

In combination with per syntax font settings that would allow you to goose the font on specific tabs and reset it without having it affect other things, if that helps.

I’m not aware of any package that provides such functionality though.

0 Likes