- for (p = pll->runs; p != NULL; p = p->next)
- {
- PangoLayoutRun *run = p->data;
- PangoFont *font = run->item->analysis.font;
- PangoGlyphString *glyphs = run->glyphs;
- PangoRectangle rect;
-
- pango_glyph_string_extents (glyphs, font, NULL, &rect);
- pango_xft_render (d, &c, font, glyphs, x, t->font->xftfont->ascent + y);
- x += rect.width / PANGO_SCALE;
- }
-
- // pango_layout_line_unref(pll);
- g_object_unref(pl);
- g_object_unref(context);
-#endif /* USE_PANGO */
+ pango_xft_render_layout(d, &c, pl, x * PANGO_SCALE, y * PANGO_SCALE);
+ g_object_unref(pl);
+ g_object_unref(context);
+#endif