From: Emden R. Gansner Date: Thu, 7 Nov 2013 14:53:14 +0000 (-0500) Subject: Fix renderer to use new textspan_t type. X-Git-Tag: 2.38.0~193^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1bcef71ec0da7a8077b0e5d9e864d6805744bfe;p=graphviz Fix renderer to use new textspan_t type. --- diff --git a/plugin/gdiplus/gvtextlayout_gdiplus.cpp b/plugin/gdiplus/gvtextlayout_gdiplus.cpp index 606ce8512..79fe6a59c 100755 --- a/plugin/gdiplus/gvtextlayout_gdiplus.cpp +++ b/plugin/gdiplus/gvtextlayout_gdiplus.cpp @@ -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; };