jhnath / contexteditor

Automatically exported from code.google.com/p/contexteditor
0 stars 0 forks source link

When extra line spacing added, horizontal cursor and selection rectangles are not drawn correctly #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When adding extra line spacing via Options, and the "horizontal cursor" is 
selected, the cursor is incorrectly drawn spaced downwards. Also it's apparent 
that when drawing each line, the code measures the line height based on 
font/size selection, then adds the extra spacing at the bottom of the line. 
Doing it this way causes the selection "rectangle" to look weird, with the 
glyphs up at the very top and this huge empty space below, and impinging on 
lower lines. Instead the glyphs should be centered vertically inside the extra 
line spacing. 

Thanks, this is a great editor!

Original issue reported on code.google.com by nathan.c...@gmail.com on 22 Aug 2011 at 2:55