diff options
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java b/fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java index 3894f01e0..e46642892 100644 --- a/fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java +++ b/fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java @@ -167,6 +167,7 @@ class PDFTextPainter extends NativeTextPainter { Paint strokePaint = tpi.strokePaint; Stroke stroke = tpi.strokeStroke; int fillAlpha = PDFGraphics2D.OPAQUE; + int strokeAlpha = PDFGraphics2D.OPAQUE; if (fillPaint instanceof Color) { Color col = (Color) fillPaint; pdf.applyColor(col, true); @@ -175,13 +176,14 @@ class PDFTextPainter extends NativeTextPainter { if (strokePaint instanceof Color) { Color col = (Color) strokePaint; pdf.applyColor(col, false); + strokeAlpha = col.getAlpha(); } pdf.applyPaint(fillPaint, true); pdf.applyStroke(stroke); if (strokePaint != null) { pdf.applyPaint(strokePaint, false); } - pdf.applyAlpha(fillAlpha, PDFGraphics2D.OPAQUE); + pdf.applyAlpha(fillAlpha, strokeAlpha); } @Override |