Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing font size of tabs strip in Sublime Text 3

Tags:

sublimetext3

I used this answer, with a little bit help of Sublime 3 Help, I managed to port solution and change font size (and other attributes) of sidebar in my Sublime Text 3.

But how can I change (to larger) font size used by ST3 tab strip? If it is possible at all. I find filename tabs drawn with 10 pt font size quite not so comfortable on FullHD resolution screen. At least for my eyes.

like image 582
trejder Avatar asked Sep 03 '14 13:09

trejder


3 Answers

As outlined in the answer you linked to, find your <theme>.sublime-theme file. Open it up and search for tab_label. The section should look something like this:

{
    "class": "tab_label",
    "font.size": 12, 
    "font.face": "Ubuntu"
},

Modify it according to your preferences and save the file. You should see the changes immediately.

To change the tab dimensions you can use the following section:

{
    "class": "tabset_control",
    "tab_height": 42,
    "tab_width": 160,
    "tab_min_width": 48
},

Note: Larger font sizes (e.g. > 12pt on my system) will get cut off, even if the tab height is adjusted accordingly. This is a well-known bug.

like image 147
Glutanimate Avatar answered Nov 08 '22 20:11

Glutanimate


set the following in your Preferences.sublime-settings

"dpi_scale": 2.0
like image 21
faham Avatar answered Nov 08 '22 20:11

faham


As of December 2020, the above answer referencing the dpi_scale setting does NOT work (using Sublime Text 3.2.2). The name of this setting was changed to ui_scale.

Go to Preferences | Settings

Then add the following (vary 1.3 as appropriate).

   "ui_scale": 1.3

Once you change this, you'll need to restart Sublime.

Credit @Marco Sulla for the correct reply above (its just kind of hidden in a comment).

Also Helpful:

  • Install the PackageDev plugin
  • This makes it very easy to edit your current theme via PackageDev: Edit Current Theme

You can also set the Tab fonts to bold like this by adding the following rule to your current theme:

{
    "rules": [
        {
            "class": "tab_label",
            "font.bold": true,
            "font.size": 14
        }
    ]
}
like image 6
Lance Avatar answered Nov 08 '22 19:11

Lance