ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Font​Cycler

by akshaykumar90 ST2/ST3

Quickly cycle between your favorite fonts in Sublime Text with the press of a key

Details

Installs

  • Total 8K
  • Win 5K
  • OS X 2K
  • Linux 2K
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 2 2 3 12 8 5 12 7 5 5 7 8 5 10 12 5 4 5 4 2 12 5 8 5 6 15 9 7 6 4 7 12 11 10 10 9 2 7 9 16 9 8 5 5 5 8
OS X 0 3 2 0 2 0 1 1 2 2 2 2 1 2 2 1 0 3 2 3 3 3 1 3 2 2 6 4 1 1 2 7 4 4 5 10 4 0 5 10 2 3 3 0 0 4
Linux 2 6 0 3 4 4 0 3 2 4 4 3 1 2 1 5 2 5 2 3 4 2 1 1 3 2 2 1 1 2 2 3 1 4 6 3 2 1 7 6 3 1 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

FontCycler

Quickly cycle between your favorite fonts in Sublime Text with the press of a key. Some research says that this makes you productive. wink wink

Installation

The simplest method of installation is through Package Control, which can be found at this site: https://sublime.wbond.net/installation

Just install Package Control, and select FontCycler in the list of available packages.

Usage

You can cycle through the fonts by pressing the F10 key, and cycle backwards with Shift+F10.

You need to set the fonts_list key in the Preferences.sublime-settings file to a list of fonts you want to cycle within. The fonts need to be pre-installed on the system.

You can specify just a font name or an object with the properties font_face, font_size, line_padding_bottom and line_padding_top. font_face is a required property on the object.

{
    "fonts_list":
        [
            "Andale Mono",
            "Consolas",
            "Courier",
            "Courier New",
            "Envy Code R",
            "Inconsolata",
            "Lucida Console",
            "Menlo",
            "Meslo LG S",
            "Meslo LG M",
            "Meslo LG L",
            "Monaco",
            "ProFontX",
            "Source Code Pro",
            "Ubuntu Mono"
        ]
}
{
    "fonts_list":
    [
        {
            "font_face": "Consolas",
            "font_size": 9,
            "line_padding_bottom": 1,
            "line_padding_top": 0
        },
        {
            "font_face": "Courier",
            "font_size": 12
        },
        {
            "font_face": "Menlo",
            "font_size": 10,
            "line_padding_bottom": 1,
            "line_padding_top": 0
        }
    ]
}

Or even a mixed approach:

{
    "fonts_list":
    [
        "Consolas",
        {
            "font_face": "Courier",
            "font_size": 12
        },
        {
            "font_face": "Menlo",
            "font_size": 10,
            "line_padding_bottom": 1,
            "line_padding_top": 0
        }
    ]
}

Configuration

To change the keyboard shortcut for next and previous font, bind the next_font and previous_font commands respectively to the desired keys.