mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
new text handling in SVG export seems to work
This commit is contained in:
parent
c0b17f8f00
commit
bfaf89aa8a
@ -32,7 +32,10 @@ public final class SVGFormatter {
|
||||
Decorate d = (Decorate) text;
|
||||
switch (d.getStyle()) {
|
||||
case MATH:
|
||||
return "<tspan style=\"font-style:italic\">" + format(d.getContent(), true) + "</tspan>";
|
||||
if (mathMode)
|
||||
return format(d.getContent(), true);
|
||||
else
|
||||
return "<tspan style=\"font-style:italic\">" + format(d.getContent(), true) + "</tspan>";
|
||||
case OVERLINE:
|
||||
return "<tspan style=\"text-decoration: overline\">" + format(d.getContent(), mathMode) + "</tspan>";
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user