diff options
author | Artem Khvat <akhva@openoffice.org> | 2007-12-14 15:25:53 +0000 |
---|---|---|
committer | Artem Khvat <akhva@openoffice.org> | 2007-12-14 15:25:53 +0000 |
commit | 9c4254f9f0e97ea234207620237f69d0cf3f45cc (patch) | |
tree | 5dcec5a2dcf780ded0197f6d72773a5274896288 /xpdf | |
parent | 1fbd7739db8f4e068c6431cd5e95cd51d1fa3713 (diff) |
#i80285# Fix baseline
Diffstat (limited to 'xpdf')
-rw-r--r-- | xpdf/wrapper/pdfioutdev_gpl.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xpdf/wrapper/pdfioutdev_gpl.cxx b/xpdf/wrapper/pdfioutdev_gpl.cxx index 3a65939..e8977f3 100644 --- a/xpdf/wrapper/pdfioutdev_gpl.cxx +++ b/xpdf/wrapper/pdfioutdev_gpl.cxx @@ -4,9 +4,9 @@ * * $RCSfile: pdfioutdev_gpl.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: thb $ $Date: 2007-12-05 14:16:44 $ + * last change: $Author: akhva $ $Date: 2007-12-14 16:25:53 $ * * The Contents of this file are made available subject to * the terms of GNU General Public License Version 2. @@ -629,15 +629,15 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y, // normalize coordinates // correct from baseline to upper left corner - double x2(0.0), y2(0.0); - state->textTransformDelta( 0.0, + // double x2(0.0), y2(0.0); + /* state->textTransformDelta( 0.0, state->getFontSize()*state->getFont()->getAscent(), &x2, &y2 ); x -= x2; - y += y2; + y += y2;*/ - const double aPositionX(x-originX); - const double aPositionY(y-originY); + const double aPositionX(x/*-originX*/); + const double aPositionY(y/*-originY*/); const double nWidth(dx); const double nHeight(state->getFontSize()); |