Fix display of glyphless characters with problematic fonts
commitc76605faa1f597e67df1e5c6cfae5230ff3a6a76
authorEli Zaretskii <eliz@gnu.org>
Thu, 28 May 2015 17:23:41 +0000 (28 20:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 28 May 2015 17:23:41 +0000 (28 20:23 +0300)
tree8d5100ba36931d2e06b9e61b34028d9620cdbcd0
parent1d87cb3cfa08086be96f78ab09d99f3e7ba8ca60
Fix display of glyphless characters with problematic fonts

* src/w32term.c (x_draw_glyph_string_background): Force redraw of
glyph string background also when the font in use claims
preposterously large global height value.  Helps to remove
artifacts left from previous displays when glyphless characters
are displayed as hex code in a box.
* src/xterm.c (x_draw_glyph_string_background): Force redraw of
glyph string background also when the font in use claims
preposterously large global height value.  Helps to remove
artifacts left from previous displays when glyphless characters
are displayed as hex code in a box.
* src/w32font.c (w32font_draw): Fix background drawing for
glyphless characters that display as acronyms or hex codes in a
box.
* src/xftfont.c (xftfont_draw): Fix background drawing for
glyphless characters that display as acronyms or hex codes in a
box.
* src/xdisp.c (produce_glyphless_glyph): Compute reasonable values
for it->ascent and it->descent when the font claims preposterously
large global values.
(FONT_TOO_HIGH): Move from here...
* src/dispextern.h (FONT_TOO_HIGH): ...to here.
src/dispextern.h
src/w32font.c
src/w32term.c
src/xdisp.c
src/xftfont.c
src/xterm.c