[Poppler-bugs] [Bug 98814] width set to 0 for vertical text
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Nov 22 10:51:47 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=98814
--- Comment #1 from perrotton <jeanphilippe.perrotton at gmail.com> ---
my last fix proposition wasn't good enough, actually a shift (x coordonate) was
gradually added for each characters on same vertical line.
I found a solution,in function Gfx::doShowText() :
I changed :
...
} else if (out->useDrawChar()) {
...
state->shift(tdx, tdy);
...
}
by :
...
} else if (out->useDrawChar()) {
...
if (wMode) { // vertical
state->shift(0, tdy);
} else { // horizontal
state->shift(tdx, tdy);
}
...
}
as you can see I have made my changes only in "if (out->useDrawChar()) {"
statement.
perhaps it as to be done elsewhere too
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20161122/70aa048c/attachment.html>
More information about the Poppler-bugs
mailing list