# HG changeset patch # User Jason Rumney # Date 1208189692 0 # Node ID 4000ba1ef9cebda5efb64d9783cd2561a9f4132d # Parent fe9a939a34a1c259252fa1a1047d7460ea127341 (w32font_open_internal): Set max_bounds.descent in compatibility struct, for better underline positioning. diff -r fe9a939a34a1 -r 4000ba1ef9ce src/w32font.c --- 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