Sublime Forum

Buggy cursor nav w/nonstandard line_padding_top

#1

I was trying to make my favorite font, Inconsolata-dz, render with the same nice tight line spacing of the default Menlo. So I set:

"font_size": 12.0,
"font_face": "Inconsolata-dz",
"line_padding_top": -2.75,

But then I discovered that when I moved the cursor off the first line of the file, it wouldn’t go back up to line 1! It stops at line 2, unless I use Command-Up to go to the beginning of the file. Removing the line_padding_top fixes it. This happens with any font, not just Inconsolata-dz.

0 Likes

#2

This indeed seems to be a bug.
However, if I set the line padding to a whole number, there are no issues.

I had

"line_padding_bottom": 0.75,
"line_padding_top": 0.75,

Now, if I use the down-arrow to go down the lines, it jumps to the last line. If I use a number like “1” instead of the “0.75”, it’s OK.

0 Likes

#3

Line padding must be a whole number - the current dev builds will round it to an integer if required.

0 Likes