git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix: some lines were too thick or too thin
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
55b6028
..
c2aa5cb
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-590,7
+590,10
@@
void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, doub
y1 = y;
state->transform(x, y, &x1, &y1);
y1 = y;
state->transform(x, y, &x1, &y1);
- swfoutput_drawchar(&output, x1, y1, enc->getCharName(c));
+ if(enc->getCharName(c))
+ swfoutput_drawchar(&output, x1, y1, enc->getCharName(c));
+ else
+ logf("<warning> couldn't get name for character %02x from Encoding", c);
}
}
}
}
@@
-738,7
+741,7
@@
int SWFOutputDev::setT1Font(char*name, FontEncoding*encoding)
void SWFOutputDev::updateLineWidth(GfxState *state)
{
void SWFOutputDev::updateLineWidth(GfxState *state)
{
- double width = state->getLineWidth();
+ double width = state->getTransformedLineWidth();
swfoutput_setlinewidth(&output, width);
}
swfoutput_setlinewidth(&output, width);
}