Commit 5f44be4
Fix SVG font
Changed files (1)
Diff
@@ -56,9 +56,7 @@ class SvgFontFormatWriter : Object { put ("""<svg>"""); // (metadata goes here)-- put ("<defs>");-+ string font_id = font_name.replace (" ", "-"); font_id = B.XmlParser.encode (font_id); @@ -69,7 +67,7 @@ class SvgFontFormatWriter : Object { put (@"<font-face units-per-em=\"$(to_float (units_per_em))\" ascent=\"$(to_float (ascent))\" descent=\"$(to_float (descent))\" />"); put (@"<font-src>");- put (@"\t<font-face-name=\"XmlParser.encode ($font_name)\" />");+ put (@"\t<font-face-name=\"" + XmlParser.encode ($font_name) + "\" />"); put (@"</font-src>"); // (missing-glyph goes here)@@ -118,7 +116,6 @@ class SvgFontFormatWriter : Object { }); put ("</font>");- put ("</defs>"); put ("</svg>"); }