changeset 96472:04655c344174

(w32font_text_extents): Don't count overhang as part of width.
author Jason Rumney <jasonr@gnu.org>
date Tue, 01 Jul 2008 14:00:42 +0000
parents e347ed611dcf
children fc17970f7da9
files src/w32font.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Tue Jul 01 12:09:33 2008 +0000
+++ b/src/w32font.c	Tue Jul 01 14:00:42 2008 +0000
@@ -526,9 +526,9 @@
   /* Give our best estimate of the metrics, based on what we know.  */
   if (metrics)
     {
-      metrics->width = total_width;
+      metrics->width = total_width - w32_font->metrics.tmOverhang;
       metrics->lbearing = 0;
-      metrics->rbearing = total_width + w32_font->metrics.tmOverhang;
+      metrics->rbearing = total_width;
     }
 
   /* Restore state and release DC.  */