+2008-07-01 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_text_extents): Don't count overhang as part
+ of width.
+
2008-06-30 Miles Bader <miles@gnu.org>
* dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
/* 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. */