Browse Source

Merge pull request #1814 in CORE/base-third from bugfix/10.0 to feature/10.0

* commit '0f23c728508c4906d8b04647de0157a5981de317':
  REPORT-47816 在某些字体、字号下,导出pdf文字会有一个黑边(REPORT-29126 改动导致)
feature/10.0
superman 4 years ago
parent
commit
41556ee6f9
  1. 2
      fine-itext-old/src/main/java/com/fr/third/com/lowagie/text/pdf/PdfGraphics2D.java

2
fine-itext-old/src/main/java/com/fr/third/com/lowagie/text/pdf/PdfGraphics2D.java

@ -434,6 +434,7 @@ public class PdfGraphics2D extends Graphics2D {
if (strokeWidth != 1) {
cb.setLineWidth(strokeWidth);
oldStroke = new BasicStroke(strokeWidth);
}
if (realPaint instanceof Color) {
Color color = (Color) realPaint;
int alpha = color.getAlpha();
@ -450,7 +451,6 @@ public class PdfGraphics2D extends Graphics2D {
paintStroke = color;
cb.setColorStroke(color);
}
}
restoreTextRenderingMode = true;
}
}

Loading…
Cancel
Save