1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-25 06:17:33 +00:00

Add support for wave underlined text in SVG.

This commit is contained in:
matthew16550 2021-02-21 13:51:54 +11:00
parent 1884fa8c75
commit 40e7e762e4

View File

@ -86,6 +86,10 @@ public class DriverTextSvg implements UDriver<SvgGraphics> {
textDecoration = "underline";
} else if (fontConfiguration.containsStyle(FontStyle.STRIKE)) {
textDecoration = "line-through";
} else if (fontConfiguration.containsStyle(FontStyle.WAVE)) {
// Beware that some current SVG implementations do not render the wave properly (e.g. Chrome just draws a straight line)
// Works ok on Firefox 85.
textDecoration = "wavy underline";
}
String text = shape.getText();