bugfix: some lines were too thick or too thin
[swftools.git] / pdf2swf / SWFOutputDev.cc
index 55b6028..c2aa5cb 100644 (file)
@@ -590,7 +590,10 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, doub
        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)
 {
-    double width = state->getLineWidth();
+    double width = state->getTransformedLineWidth();
     swfoutput_setlinewidth(&output, width);
 }