aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2022-05-31 16:06:10 +0000
committerChris Bowditch <cbowditch@apache.org>2022-05-31 16:06:10 +0000
commitbe072979e59b322f7d8d5c828acfe9c6a3eb887e (patch)
tree2d4e475a54cd720cb9b49447e5a7c2821204ad0a /fop-core/src
parentf807c15ff15211b9735ec98dbd5d0dd653f34759 (diff)
downloadxmlgraphics-fop-be072979e59b322f7d8d5c828acfe9c6a3eb887e.tar.gz
xmlgraphics-fop-be072979e59b322f7d8d5c828acfe9c6a3eb887e.zip
FOP-2865; fix
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1901463 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src')
-rw-r--r--fop-core/src/main/java/org/apache/fop/svg/PDFTextPainter.java4
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