mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
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:
parent
0f748df670
commit
c9c4b0eded
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue