From 40e7e762e426d09dffa0679d1c374c71765fa51a Mon Sep 17 00:00:00 2001 From: matthew16550 Date: Sun, 21 Feb 2021 13:51:54 +1100 Subject: [PATCH] Add support for wave underlined text in SVG. --- src/net/sourceforge/plantuml/ugraphic/svg/DriverTextSvg.java | 4 ++++ 1 file changed, 4 insertions(+) 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();