diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2014-11-20 10:16:06 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2014-11-20 10:16:06 +1030 |
commit | ae608035c7b7133826a608d45e067c3875a1aceb (patch) | |
tree | 7f7b603cd698c63fdd448c346d68c0d0f1677383 | |
parent | 121f384c0e231c9c5d9c937b216d342bfc7810a6 (diff) |
pdf-operators: fix bug with RTL text
bug 86461
-rw-r--r-- | src/cairo-pdf-operators.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c index ee41eba7b..dcee25f0c 100644 --- a/src/cairo-pdf-operators.c +++ b/src/cairo-pdf-operators.c @@ -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++) { |