Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

Archive for the ‘macosx’ Category

Using Adobe’s New Source Code Fonts in Sublime Text 2 on Mac

with one comment

I just tweeted how much I love using the newly discovered Adobe Code fonts in Sublime Text 2 and though I should document the steps I followed to use them:

  1. Download font from Adobe Sourceforge: Source Sans Pro & Source Code Pro
  2. The easiest way I found to install all the font files on a Mac was to go to the terminal; cd to the downloaded font directory and type:

    open *.otf

  3. All the files will open in the Font Book app; Click “Install” button for each of them
  4. Now to use it open Sublime Text 2; open Preference -> Settings – User
  5. Add the following lines to the existing settings (if empty add these lines inside braces {}) to use the Light version of Source Sans Pro font in Size 17

    "font_size": 17.0,
    "font_face": "Source Code Pro Light"
    //"font_face": "Source Sans Pro Light"

  6. You can toggle the “//” on the two lines to try out the other font and adjust the font size as you prefer

Happy Coding!!!


Written by imsaar

September 28, 2012 at 9:21 am

Posted in code, editor, macosx

Mac OSX : Reading Application Preference on Command Line

leave a comment »

I forget this often and find it useful at times to see the contents of my preference file. One mistake I often make is not to remove the file extension (.plist).

defaults read /Library/Preferences/

I am not a big fan of forums but this detailed entry helped me:
How to view plist files?

The main reason I was doing this was to keep preferences on my two laptops in sync and wanted to make sure to see if this is the right directory to SugarSync.

Written by imsaar

January 30, 2012 at 12:22 pm

Posted in configuration, macosx, shell