pdf-operators: fix bug with RTL text

bug 86461
This commit is contained in:
Adrian Johnson 2014-11-20 10:16:06 +10:30 committed by Bryce Harrington
parent fe6b1db26c
commit 650d044dfd

View file

@ -1415,7 +1415,11 @@ _cairo_pdf_operators_emit_cluster (cairo_pdf_operators_t *pdf_operators,
return status;
}
cur_glyph = glyphs;
if (cluster_flags & CAIRO_TEXT_CLUSTER_FLAG_BACKWARD)
cur_glyph = glyphs + num_glyphs - 1;
else
cur_glyph = glyphs;
/* XXX
* If no glyphs, we should put *something* here for the text to be selectable. */
for (i = 0; i < num_glyphs; i++) {