PDF: Fix glyph positioning bug in TJ operator

Previously this was not correctly positioning the first glyph in a TJ
string if the glyph was not at the the standard glyph advance.
This commit is contained in:
Adrian Johnson 2008-07-05 16:19:30 +09:30
parent 0f748df670
commit c9c4b0eded

View file

@ -850,8 +850,7 @@ _cairo_pdf_operators_emit_glyph_string_with_positioning (
_cairo_output_stream_printf (stream, "[<");
for (i = 0; i < pdf_operators->num_glyphs; i++) {
if (i != 0 &&
pdf_operators->glyphs[i].x_position != pdf_operators->cur_x)
if (pdf_operators->glyphs[i].x_position != pdf_operators->cur_x)
{
double delta = pdf_operators->glyphs[i].x_position - pdf_operators->cur_x;
int rounded_delta;