aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-04-14 16:16:01 +0000
committerJason Rumney2008-04-14 16:16:01 +0000
commite157d7babcfa6ee568a19fd6b72745454e3e4324 (patch)
tree0a12f68d3a426754c49b275b8f3411791e3c9910 /src
parentadc95ad64feaf5a42345c086460377452b5f9cae (diff)
downloademacs-e157d7babcfa6ee568a19fd6b72745454e3e4324.tar.gz
emacs-e157d7babcfa6ee568a19fd6b72745454e3e4324.zip
(w32font_open_internal): Set max_bounds.descent in
compatibility struct, for better underline positioning.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32font.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 756fa6f47ee..7aa8c857523 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-04-14 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4 compatibility struct, for better underline positioning.
5
12008-04-13 David Hansen <david.hansen@gmx.net> (tiny change) 62008-04-13 David Hansen <david.hansen@gmx.net> (tiny change)
2 7
3 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name 8 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
diff --git a/src/w32font.c b/src/w32font.c
index 6bd0376810c..ed53ff9c4b1 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -877,6 +877,11 @@ w32font_open_internal (f, font_entity, pixel_size, w32_font)
877 font->descent = w32_font->metrics.tmDescent; 877 font->descent = w32_font->metrics.tmDescent;
878 font->scalable = w32_font->metrics.tmPitchAndFamily & TMPF_VECTOR; 878 font->scalable = w32_font->metrics.tmPitchAndFamily & TMPF_VECTOR;
879 879
880 /* max_descent is used for underlining in w32term.c. Hopefully this
881 is temporary, as we'll want to get rid of the old compatibility
882 stuff later. */
883 compat_w32_font->max_bounds.descent = font->descent;
884
880 /* Set global flag fonts_changed_p to non-zero if the font loaded 885 /* Set global flag fonts_changed_p to non-zero if the font loaded
881 has a character with a smaller width than any other character 886 has a character with a smaller width than any other character
882 before, or if the font loaded has a smaller height than any other 887 before, or if the font loaded has a smaller height than any other