changeset 96934:59f723e2168b

(w32_enumfont_pattern_entity): Return height consistent with opened font.
author Jason Rumney <jasonr@gnu.org>
date Wed, 23 Jul 2008 13:18:40 +0000
parents 8020d93e3d0b
children 37a2518f3e86
files src/w32font.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Wed Jul 23 08:51:00 2008 +0000
+++ b/src/w32font.c	Wed Jul 23 13:18:40 2008 +0000
@@ -1032,7 +1032,9 @@
   FONT_SET_STYLE (entity, FONT_WIDTH_INDEX, make_number (100));
 
   if (font_type & RASTER_FONTTYPE)
-    ASET (entity, FONT_SIZE_INDEX, make_number (physical_font->ntmTm.tmHeight));
+    ASET (entity, FONT_SIZE_INDEX,
+          make_number (physical_font->ntmTm.tmHeight
+                       + physical_font->ntmTm.tmExternalLeading));
   else
     ASET (entity, FONT_SIZE_INDEX, make_number (0));