diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2008-07-05 16:22:35 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2008-07-05 16:22:35 +0930 |
commit | dac22cf2b9541c1da72e12a1fb66c5a58775f3b3 (patch) | |
tree | 1780483ad69055562abeb3bde3055306d1084244 /src/cairo-pdf-operators.c | |
parent | c9c4b0eded58e44e527806f24aa76e7874fb2111 (diff) | |
download | cairo-dac22cf2b9541c1da72e12a1fb66c5a58775f3b3.tar.gz |
PDF: Fix glyph positioning bug in Tj operator
Previously this was not correctly checking the position of the first
glyph and falling back to using TJ if the glyph was not at the the
standard glyph advance.
Diffstat (limited to 'src/cairo-pdf-operators.c')
-rw-r--r-- | src/cairo-pdf-operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c index 7ebd00b26..4aec095a0 100644 --- a/src/cairo-pdf-operators.c +++ b/src/cairo-pdf-operators.c @@ -905,7 +905,7 @@ _cairo_pdf_operators_flush_glyphs (cairo_pdf_operators_t *pdf_operators) return _cairo_output_stream_destroy (word_wrap_stream); /* Check if glyph advance used to position every glyph */ - x = pdf_operators->glyphs[0].x_position; + x = pdf_operators->cur_x; for (i = 0; i < pdf_operators->num_glyphs; i++) { if (fabs(pdf_operators->glyphs[i].x_position - x) > GLYPH_POSITION_TOLERANCE) break; |