[poppler] poppler/TextOutputDev.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sun Mar 4 09:22:55 UTC 2018
poppler/TextOutputDev.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 41c61811fdd6efe2bef34d2ce26520fc6b3c4237
Author: Jason Crain <jason at inspiresomeone.us>
Date: Fri Feb 23 23:21:03 2018 -0600
TextPage: Add horizontal scaling to font matrix
Drawing the text selection sometimes draws text reversed or expanded.
This is because the while the current font transformation matrix is
saved, the horizontal scaling is not. Include the effect of the
horizontal scaling in the transformation matrix.
https://bugs.freedesktop.org/show_bug.cgi?id=105259
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index b4cdaf50..5b406dd5 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -2618,6 +2618,8 @@ void TextPage::addChar(GfxState *state, double x, double y,
}
state->getFontTransMat(&mat.m[0], &mat.m[1], &mat.m[2], &mat.m[3]);
+ mat.m[0] *= state->getHorizScaling();
+ mat.m[1] *= state->getHorizScaling();
mat.m[4] = x1;
mat.m[5] = y1;
More information about the poppler
mailing list