diff --git a/src/net/sourceforge/plantuml/ugraphic/svg/DriverTextSvg.java b/src/net/sourceforge/plantuml/ugraphic/svg/DriverTextSvg.java index fe8a92d16..1ff12319c 100644 --- a/src/net/sourceforge/plantuml/ugraphic/svg/DriverTextSvg.java +++ b/src/net/sourceforge/plantuml/ugraphic/svg/DriverTextSvg.java @@ -86,6 +86,10 @@ public class DriverTextSvg implements UDriver { 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();