Browse Source

Pull request #1810: REPORT-47816 在某些字体、字号下,导出pdf文字会有一个黑边(REPORT-29126 改动导致)

Merge in CORE/base-third from ~HUGH.C/base-third:bugfix/10.0 to bugfix/10.0

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

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

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

Loading…
Cancel
Save