Home Download Buy Blog Forum Support

Buggy cursor nav w/nonstandard line_padding_top

Buggy cursor nav w/nonstandard line_padding_top

Postby Jay Levitt on Mon Dec 05, 2011 1:32 pm

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:
Code: Select all
"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.
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Buggy cursor nav w/nonstandard line_padding_top

Postby Brajeshwar on Sat Feb 11, 2012 4:50 pm

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

I had

Code: Select all
"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.
Regards
Brajeshwar
Brajeshwar
 
Posts: 3
Joined: Sun Oct 02, 2011 1:44 pm

Re: Buggy cursor nav w/nonstandard line_padding_top

Postby jps on Sat Feb 11, 2012 9:34 pm

Line padding must be a whole number - the current dev builds will round it to an integer if required.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm


Return to General Discussion

Who is online

Users browsing this forum: demetris, Google [Bot] and 23 guests

cron