diff --git a/src/net/sourceforge/plantuml/FileFormat.java b/src/net/sourceforge/plantuml/FileFormat.java index f31a3ff4c..52ed6d6ae 100644 --- a/src/net/sourceforge/plantuml/FileFormat.java +++ b/src/net/sourceforge/plantuml/FileFormat.java @@ -132,6 +132,10 @@ public enum FileFormat { return getDefaultStringBounder(TikzFontDistortion.getDefault(), SvgCharSizeHack.NO_HACK); } + public StringBounder getDefaultStringBounder(SvgCharSizeHack charSizeHack) { + return getDefaultStringBounder(TikzFontDistortion.getDefault(), charSizeHack); + } + public StringBounder getDefaultStringBounder(TikzFontDistortion tikzFontDistortion) { return getDefaultStringBounder(tikzFontDistortion, SvgCharSizeHack.NO_HACK); } diff --git a/src/net/sourceforge/plantuml/ugraphic/svg/UGraphicSvg.java b/src/net/sourceforge/plantuml/ugraphic/svg/UGraphicSvg.java index 9627bfda7..8d7f94fcd 100644 --- a/src/net/sourceforge/plantuml/ugraphic/svg/UGraphicSvg.java +++ b/src/net/sourceforge/plantuml/ugraphic/svg/UGraphicSvg.java @@ -42,7 +42,6 @@ import javax.xml.transform.TransformerException; import net.sourceforge.plantuml.FileFormat; import net.sourceforge.plantuml.SvgCharSizeHack; -import net.sourceforge.plantuml.TikzFontDistortion; import net.sourceforge.plantuml.Url; import net.sourceforge.plantuml.posimo.DotPath; import net.sourceforge.plantuml.svg.LengthAdjust; @@ -116,7 +115,7 @@ public class UGraphicSvg extends AbstractUGraphic implements ClipCo private UGraphicSvg(HColor defaultBackground, Dimension2D minDim, ColorMapper colorMapper, SvgGraphics svg, boolean textAsPath, String linkTarget, SvgCharSizeHack charSizeHack) { - super(defaultBackground, colorMapper, FileFormat.SVG.getDefaultStringBounder(TikzFontDistortion.getDefault(), charSizeHack), svg); + super(defaultBackground, colorMapper, FileFormat.SVG.getDefaultStringBounder(charSizeHack), svg); this.textAsPath2 = textAsPath; this.target = linkTarget; register();