1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
This commit is contained in:
Lu Wang 2012-08-21 22:34:39 +02:00
parent e9f48e7480
commit 87ae148179

View File

@ -198,7 +198,8 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
}
else
{
// TODO: consider horiz scaling
// should not consider hozi scaling here
// will be handled by draw_ctm
double target = dx1 + state->getCharSpace();
if(n == 1 && *p == ' ')
target += state->getWordSpace();
@ -216,7 +217,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
len -= n;
}
// TODO, horiz_scaling is merged into ctm now,
// horiz_scaling is merged into ctm now,
// so the coordinate system is ugly
dx = (dx * state->getFontSize()
+ nChars * state->getCharSpace()