]> granicus.if.org Git - graphviz/commitdiff
Fix renderer to use new textspan_t type.
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 7 Nov 2013 14:53:14 +0000 (09:53 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 7 Nov 2013 14:53:14 +0000 (09:53 -0500)
plugin/gdiplus/gvtextlayout_gdiplus.cpp

index 606ce85125b2f0b4c739085eb01431f2d7b7a5d3..79fe6a59c72f9233b9fb68fee27dfa54ca4bfc2b 100755 (executable)
@@ -104,9 +104,9 @@ boolean gdiplus_textlayout(textspan_t *span, char **fontpath)
                
        span->layout = (void*)layout;
        span->free_layout = &gdiplus_free_layout;
-       span->width = boundingBox.Width;
-       span->height = layout->font->GetHeight(&measureGraphics);
-       span->yoffset_layout = fontFamily.GetCellAscent(style) * span->fontsize / fontFamily.GetEmHeight(style); /* convert design units to pixels */
+       span->size.x = boundingBox.Width;
+       span->size.y = layout->font->GetHeight(&measureGraphics);
+       span->yoffset_layout = fontFamily.GetCellAscent(style) * span->font->size / fontFamily.GetEmHeight(style); /* convert design units to pixels */
        span->yoffset_centerline = 0;
        return TRUE;
 };