summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorJeff Muizelaar <jeff@infidigm.net>2006-04-10 18:12:44 +0000
committerJeff Muizelaar <jeff@infidigm.net>2006-04-10 18:12:44 +0000
commitb198c9801c668014c0979c57033a0637e7e046e2 (patch)
tree472bebac25bac49f251ccd9f9fd0276750b02e84 /poppler
parentfd251f52efc7748fda91cc77fb9d3966e0f02ac8 (diff)
2006-04-10 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: take originX and originY into account in drawChar() to draw vertical text properly. Fixes #6551.
Diffstat (limited to 'poppler')
-rw-r--r--poppler/CairoOutputDev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 6fa5e4ee..7407978a 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -378,7 +378,7 @@ void CairoOutputDev::drawChar(GfxState *state, double x, double y,
double tx, ty;
glyphs[glyphCount].index = currentFont->getGlyph (code, u, uLen);
- state->transform(x, y, &tx, &ty);
+ state->transform(x - originX, y - originY, &tx, &ty);
glyphs[glyphCount].x = tx;
glyphs[glyphCount].y = ty;
glyphCount++;