Home Download Buy Blog Forum Support

Platform font size setting

Platform font size setting

Postby rchl on Sat May 21, 2011 8:48 pm

Is there a way to configure font-size separately for Mac/Win? Currently I share same settings between both platforms and I have to constantly change font-size due to different screen dpi and resolutions. Size that is OK on Windows is tiny on Mac.
rchl
 
Posts: 142
Joined: Fri Mar 04, 2011 11:02 pm

Re: Platform font size setting

Postby firefusion on Tue Apr 17, 2012 7:51 am

I would also like to know.
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Platform font size setting

Postby SeanWcom on Tue Apr 17, 2012 1:14 pm

There might be a way to extend the features of the Camaleón plugin to do that. Right now it's just a theme/syntax switcher:

https://github.com/SublimeText/Camaleon
Multiple selections... one of my favorite ST2 features. View some noob-friendly screen casts here.
SeanWcom
 
Posts: 101
Joined: Wed Aug 03, 2011 1:31 am
Location: Georgia

Re: Platform font size setting

Postby jps on Wed Apr 18, 2012 1:31 am

You can do this by specifying the font size in "Preferences (OSX).sublime-settings". The catch is that this file won't be picked up if it's in your User directory. You'll want something like this:

User Platform/Preferences (OSX).sublime-settings: specifies font_size
User Platform/Preferences (Windows).sublime-settings: specifies font_size
User/Preferences (OSX).sublime-settings: doesn't specify a font_size
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Platform font size setting

Postby firefusion on Wed Apr 18, 2012 6:10 am

Hi Jon,

I added the two files (see below) but neither seems to be having any effect. Restarted multiple times. The font settings only change if I edit User/Preferences.sublime-settings .

User Platform/Preferences (OSX).sublime-settings

Code: Select all
{
   "font_face": "inconsolata",
   "font_size": 17.0
}


User Platform/Preferences (Windows).sublime-settings

Code: Select all
{
   "font_face": "consolas",
   "font_size": 14.0
}
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Platform font size setting

Postby jps on Wed Apr 18, 2012 6:40 am

You need to ensure that you don't specify a font size in your regular user preferences, or it'll override the other two sources.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Platform font size setting

Postby rchl on Wed Apr 18, 2012 11:04 pm

jps's suggestion doesn't really work for me either. (latest nightly, mac)
rchl
 
Posts: 142
Joined: Fri Mar 04, 2011 11:02 pm

Re: Platform font size setting

Postby TinyClanger on Mon Jan 28, 2013 9:32 am

Has anyone managed to get this to work?

I've got both font_face and font_size set in the per-platform preference files and not in the user preferences; the font_size gets ignored in both cases and leaves me with text that is too small on OS X and text that is too large on Ubuntu.

Annoyingly, changing text size to Small in Ubuntu's accessibility preferences means a setting of 12pt now looks the same on both platforms in apps like Terminal — but Sublime Text seems to ignore this setting and continues displaying 12pt at a rather large size :(
TinyClanger
 
Posts: 9
Joined: Sun Jan 27, 2013 12:01 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 11 guests