Sublime Forum

Line padding

#1

Ok this might be a personal preference but if the lines are spaced more, they are easier to be read. So how difficult would it be to add as an option in the font preferences file the top and bottom padding of the text? Or at least the line height?

0 Likes

#2

I’ll add it for the next beta.

0 Likes

#3

thank you :smile:

0 Likes

#4

This is done in 20080408, there are two new options, linePaddingTop and linePaddingBottom you can set: Take a look at Preferences/File Type Defaults/Default File Type.sublime-options.

0 Likes

#5

1px top/bottom is perfect :smile:

0 Likes

#6

thank you!!! :smile:

0 Likes

#7

This setting doesn’t seem to kick in. Has it been changed to something else?

Adding this in my Base File.sublime-settings doesn’t change anything visually:

{
// Slightly over-exaggerated values to spot difference
“linePaddingTop”: 20,
“linePaddingBottom”: 20
}

I’m using Mac OS X 10.6.8 and my current Sublime Text 2 version is (beta) 2111.

0 Likes

#8

The name of the preference has changed. Use this instead:

"line_padding_bottom": 20, "line_padding_top": 20

0 Likes