]> code.delx.au - gnu-emacs/commit
Fix display of stretch glyphs with large fonts
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 May 2015 13:41:10 +0000 (16:41 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 May 2015 13:41:10 +0000 (16:41 +0300)
commitc5228486590c1f31c56f9ea67667617966818cba
tree12b33682fe25be011168058ca1e84e680282c871
parentc76605faa1f597e67df1e5c6cfae5230ff3a6a76
Fix display of stretch glyphs with large fonts

* src/xdisp.c (normal_char_height): New function.
(calc_pixel_width_or_height, produce_stretch_glyph): Use it to
compute more reasonable estimation of a "normal character height"
when the font claims preposterously large height values.
src/xdisp.c