if (span->free_layout == &gdiplus_free_layout)
layout = (Layout*)span->layout;
else
- layout = new Layout(span->fontname, span->fontsize, span->str);
+ layout = new Layout(span->font->name, span->font->size, span->str);
/* draw the text */
SolidBrush brush(Color(job->obj->pencolor.u.rgba [3], job->obj->pencolor.u.rgba [0], job->obj->pencolor.u.rgba [1], job->obj->pencolor.u.rgba [2]));
/* ensure GDI+ is started up: since we get called outside of a job, we can't rely on GDI+ startup then */
UseGdiplus();
- Layout* layout = new Layout(span->fontname, span->fontsize, span->str);
+ Layout* layout = new Layout(span->font->name, span->font->size, span->str);
/* measure the text */
/* NOTE: use TextRenderingHintAntiAlias + GetGenericTypographic to get a layout without extra space at beginning and end */