1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 08:00:48 +00:00

Merge pull request #471 from matthew16550/svg-text-wave

Add support for wave underlined text in SVG.
This commit is contained in:
arnaudroques 2021-03-02 16:51:50 +01:00 committed by GitHub
commit 5bfed61aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();