]> git.eshelyaron.com Git - emacs.git/commit
Avoid very high screen lines with some fonts
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 May 2015 14:56:16 +0000 (17:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 May 2015 14:56:16 +0000 (17:56 +0300)
commit1d87cb3cfa08086be96f78ab09d99f3e7ba8ca60
treead88f33f5e597e144625d017207353cfb1c16a42
parent171981622f072546aed135668e53fdeb7b012631
Avoid very high screen lines with some fonts

* src/xdisp.c (get_phys_cursor_geometry): Adjust the height of the
cursor to avoid weird-looking hollow cursor with fonts that have
large ascent values for some glyphs.  This avoids having the
hollow cursor start too low.
(append_space_for_newline): Adjust the ascent value of the newline
glyph, so that the hollow cursor at end of line displays
correctly.
(FONT_TOO_HIGH): New macro.
(x_produce_glyphs): Use it to detect fonts that claim a
preposterously large height, in which case we use per-glyph ascent
and descent values.  (Bug#20628)
src/xdisp.c