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
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;
<changes>
<release version="FOP Trunk" date="TBD">
+ <action context="Renderers" dev="JM" type="fix">
+ Fixed text stroking in SVG when the stroke-width is zero.
+ </action>
<action context="Layout" dev="JM" type="fix">
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.