Home Download Buy Blog Forum Support

ST2/ST3 Font size independence per-window

ST2/ST3 Font size independence per-window

Postby qgates on Sun Feb 10, 2013 1:07 am

I am a multimonitor user and really appreciate sublime's chromeless F11 with split views. So usually I open 2 sublime windows, F11 each on each respective monitor then get a lovely code only display across both my screens.

The problem is this: My two monitors have different pixel densities ie. they're not identical monitors. So the font size that's correct on one screen is (in my case) too big on the second screen. Correct on the second screen is too small on the primary screen. You get the picture.

So I'm wondering is there a way to change font size independently for sublime windows? I've scoured around and was even prepared to do this via a plugin, but I can't find any way to do it, and things seem to be much the same in ST3. I'm not so bothered about changing font-size per pane on split-screen views (personally) but many devs and writers use multi screens these days so I figure it's kindof essential. Can it be done, and if not, is it cheeky to lazily put a feature request here as well? ;)
Last edited by qgates on Sun Feb 10, 2013 5:58 am, edited 1 time in total.
qgates
 
Posts: 223
Joined: Mon Nov 05, 2012 4:33 pm

Re: ST2/ST3 Font size independence per-window

Postby jps on Sun Feb 10, 2013 1:29 am

You can make a project per-window, and put a font_size setting in the .sublime-project file
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: ST2/ST3 Font size independence per-window

Postby qgates on Sun Feb 10, 2013 6:10 am

Thanks Jon. A neat workaround that I hadn't thought of, but I tried it and can't seem to get it working. Do I need to put the font_size in a particular place in the project file? I tried editing the project and placed it inside the the top level {} and in the "Settings" key. Speaking of which, upon first selecting "Edit project" I noticed the following, here's the last 20 lines or so of what appeared:

Code: Select all
   "select_symbol":
   {
      "height": 0.0,
      "selected_items":
      [
      ],
      "width": 0.0
   },
   "settings":
   {
   },
   "show_minimap": true,
   "show_open_files": true,
   "show_tabs": true,
   "side_bar_visible": false,
   "side_bar_width": 222.0,
   "status_bar_visible": true,
   "template_settings":
   {
   }
}


Notice "settings" and below. Seems that the "settings" key and {} arrangement has been messed up by sublime somehow?
qgates
 
Posts: 223
Joined: Mon Nov 05, 2012 4:33 pm

Re: ST2/ST3 Font size independence per-window

Postby elgalu on Thu Jan 09, 2014 9:02 pm

On a per project basis, you should put it within "settings", e.g.

Code: Select all
{
  "folders":
  [
    {
      "path": "/home/user/some-project-folder"
    }
  ],
  "settings":
  {
    "font_size": 10
  }
}
elgalu
 
Posts: 1
Joined: Sun Sep 01, 2013 9:03 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 28 guests