]> granicus.if.org Git - graphviz/commitdiff
WIN32 bottom pixel bug fixed
authorarif <devnull@localhost>
Thu, 10 Dec 2009 17:12:18 +0000 (17:12 +0000)
committerarif <devnull@localhost>
Thu, 10 Dec 2009 17:12:18 +0000 (17:12 +0000)
plugin/pango/gvtextlayout_pango.c

index e939387afab4ac1eb83edd6a0929af7e88b6c4b8..3d5141f68c137a24dbdd441b8fece64f28cca6fa 100644 (file)
@@ -188,7 +188,7 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
 
     textlayout_scale = POINTS_PER_INCH / (FONT_DPI * PANGO_SCALE);
     para->width = ROUND(logical_rect.width * textlayout_scale);
-    para->height = ROUND(logical_rect.height * textlayout_scale);
+    para->height = ROUND(logical_rect.height * textlayout_scale+1);
 
     /* The y offset from baseline to 0,0 of the bitmap representation */
     iter = pango_layout_get_iter (layout);