# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1044434277 0 # Node ID f2435b378aed5777368b8252967fa889d754b962 # Parent 4e91b3c42e057d6f2bdb6ee3fb3003d59961bd0d We should use the logical_rect not the ink_rect when querying the font extents using Pango. diff -r 4e91b3c42e05 -r f2435b378aed gtk/dw.c --- a/gtk/dw.c Wed Feb 05 07:21:51 2003 +0000 +++ b/gtk/dw.c Wed Feb 05 08:37:57 2003 +0000 @@ -4973,8 +4973,8 @@ PangoRectangle rect; pango_layout_set_font_description(layout, font); - pango_layout_set_text(layout, text, strlen(text)); - pango_layout_get_pixel_extents(layout, &rect, NULL); + pango_layout_set_text(layout, text, -1); + pango_layout_get_pixel_extents(layout, NULL, &rect); if(width) *width = rect.width;