mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 02:49:06 +00:00
Merge pull request #471 from matthew16550/svg-text-wave
Add support for wave underlined text in SVG.
This commit is contained in:
commit
5bfed61aef
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user