From: Andrew Innes Date: Mon, 3 May 1999 22:27:11 +0000 (+0000) Subject: (dumpglyphs): Always fill background for italic fonts. X-Git-Tag: emacs-20.4~262 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3e0e526a7fdcba220dc74193b5b7d81590d5804;p=emacs.git (dumpglyphs): Always fill background for italic fonts. --- diff --git a/src/w32term.c b/src/w32term.c index 4139ec8eabd..ed4255f2294 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -711,6 +711,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) 3) Drawing a composite character. 4) Font has non-zero _MULE_BASELINE_OFFSET property. 5) Font is a bdf font. + 6) Font is italic (italic fonts falsely report their height). After filling background, we draw glyphs by XDrawString16. */ int background_filled; /* Baseline position of a character, offset from TOP. */ @@ -940,6 +941,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) || FONT_HEIGHT (font) < line_height || FONT_WIDTH (font) < glyph_width || FONT_MAX_WIDTH (font) != FONT_WIDTH (font) + || font->tm.tmItalic || cmpcharp) { /* Fill in the background for the current run. */