git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a07fbe5
)
added rounding of character coordinates.
author
kramm
<kramm>
Wed, 1 Sep 2004 17:54:52 +0000
(17:54 +0000)
committer
kramm
<kramm>
Wed, 1 Sep 2004 17:54:52 +0000
(17:54 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
50a7016
..
eb12157
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-645,6
+645,9
@@
void SWFOutputDev::beginString(GfxState *state, GString *s)
m11 *= state->getHorizScaling();
m21 *= state->getHorizScaling();
swfoutput_setfontmatrix(&output, m11, -m21, m12, -m22);
m11 *= state->getHorizScaling();
m21 *= state->getHorizScaling();
swfoutput_setfontmatrix(&output, m11, -m21, m12, -m22);
+
+ msg("<debug> fontmatrix %7.3f %7.3f\n", m11,-m21);
+ msg("<debug> fontmatrix %7.3f %7.3f\n", m12,-m22);
}
void SWFOutputDev::drawChar(GfxState *state, double x, double y,
}
void SWFOutputDev::drawChar(GfxState *state, double x, double y,
@@
-693,6
+696,9
@@
void SWFOutputDev::drawChar(GfxState *state, double x, double y,
msg("<debug> drawChar(%f,%f,c='%c' (%d),u=%d <%d>) CID=%d name=\"%s\"\n",x,y,(c&127)>=32?c:'?',c,u, uLen, font->isCIDFont(), FIXNULL(name));
msg("<debug> drawChar(%f,%f,c='%c' (%d),u=%d <%d>) CID=%d name=\"%s\"\n",x,y,(c&127)>=32?c:'?',c,u, uLen, font->isCIDFont(), FIXNULL(name));
+ x1 = (int)(x1+0.5);
+ y1 = (int)(y1+0.5);
+
int ret = swfoutput_drawchar(&output, x1, y1, name, c, u);
}
int ret = swfoutput_drawchar(&output, x1, y1, name, c, u);
}