Dimitry Polivaev created BATIK-1382:
---------------------------------------
Summary: SVGGraphics2D does not convert
TextAttribute.STRIKETHROUGH to SVG text-decoration
Key: BATIK-1382
URL: https://issues.apache.org/jira/browse/BATIK-1382
Project: Batik
Issue Type: Bug
Components: SVGGraphics2D
Affects Versions: 1.19
Reporter: Dimitry Polivaev
Attachments: ScreenshotInkscape.png, ScreenshotTestApp.png,
StrikeThroughSvgTestApp.java, strikethrough_test.svg
When using SVGGraphics2D to export Java Swing components containing text with
TextAttribute.STRIKETHROUGH formatting, the strikethrough attribute is not
converted to the corresponding SVG text-decoration="line-through" attribute.
Steps to reproduce:
# Create a JLabel with Font using TextAttribute.STRIKETHROUGH
# Paint the component using SVGGraphics2D
# Examine generated SVG
Expected: <text text-decoration="line-through">strikethrough text</text>
Actual: <text>strikethrough text</text> (no text-decoration attribute)
Notes:
# Other font attributes (bold, italic) are correctly converted.
# The issue was originally by Freeplane user at
https://github.com/freeplane/freeplane/issues/2524
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]