changeset 94082:4000ba1ef9ce

(w32font_open_internal): Set max_bounds.descent in compatibility struct, for better underline positioning.
author Jason Rumney <jasonr@gnu.org>
date Mon, 14 Apr 2008 16:14:52 +0000
parents fe9a939a34a1
children 700949191760
files src/w32font.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Mon Apr 14 15:46:06 2008 +0000
+++ b/src/w32font.c	Mon Apr 14 16:14:52 2008 +0000
@@ -877,6 +877,11 @@
   font->descent = w32_font->metrics.tmDescent;
   font->scalable = w32_font->metrics.tmPitchAndFamily & TMPF_VECTOR;
 
+  /* max_descent is used for underlining in w32term.c.  Hopefully this
+     is temporary, as we'll want to get rid of the old compatibility
+     stuff later.  */
+  compat_w32_font->max_bounds.descent = font->descent;
+
   /* Set global flag fonts_changed_p to non-zero if the font loaded
      has a character with a smaller width than any other character
      before, or if the font loaded has a smaller height than any other