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