From: Jeremias Maerki Date: Fri, 22 Aug 2008 14:16:58 +0000 (+0000) Subject: Merge from branch https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95: X-Git-Tag: fop-1_0~444 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a73edf08461bdc112fa5a21d328f54591343bc7a;p=xmlgraphics-fop.git Merge from branch https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95: Fixed text stroking in SVG when the stroke-width is zero. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@688087 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/svg/PDFTextPainter.java b/src/java/org/apache/fop/svg/PDFTextPainter.java index d8123c4fb..06fea54cc 100644 --- a/src/java/org/apache/fop/svg/PDFTextPainter.java +++ b/src/java/org/apache/fop/svg/PDFTextPainter.java @@ -147,7 +147,9 @@ public class PDFTextPainter extends StrokingTextPainter { textUtil.beginTextObject(); textUtil.setFonts(fonts); - textUtil.setTextRenderingMode(tpi.fillPaint != null, tpi.strokePaint != null, false); + boolean stroke = (tpi.strokePaint != null) + && (tpi.strokeStroke != null); + textUtil.setTextRenderingMode(tpi.fillPaint != null, stroke, false); AffineTransform localTransform = new AffineTransform(); Point2D prevPos = null; diff --git a/status.xml b/status.xml index 3e17b56ac..deb5242a1 100644 --- a/status.xml +++ b/status.xml @@ -53,6 +53,9 @@ + + Fixed text stroking in SVG when the stroke-width is zero. + Fixed the source for a division by zero when the content of an fo:leader with leader-pattern="use-content" collapses to zero width during layout.