Mercurial > dwindows
changeset 233:f2435b378aed
We should use the logical_rect not the ink_rect when querying the font
extents using Pango.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 05 Feb 2003 08:37:57 +0000 |
parents | 4e91b3c42e05 |
children | a292977629ba |
files | gtk/dw.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;