The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Namespace in SVG table (OTF fonts)

These changes was commited to the Birdfont repository Sun, 19 Jun 2016 20:36:03 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sun, 19 Jun 2016 20:36:03 +0000]

Updated Files

libbirdfont/ExportTool.vala
libbirdfont/OpenFontFormat/SvgTable.vala
--- a/libbirdfont/ExportTool.vala +++ b/libbirdfont/ExportTool.vala @@ -419,7 +419,7 @@ <span class="capstosmallcaps">OTF</span> features, <span class="swashes">like swashes </span> <span class="alternates">alternates &amp; </span> - <span class="smallcaps">small caps</span>, can be added + small caps, can be added to the font.</span> </p> </div>
--- a/libbirdfont/OpenFontFormat/SvgTable.vala +++ b/libbirdfont/OpenFontFormat/SvgTable.vala @@ -51,8 +51,9 @@ svg.append ("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"); foreach (EmbeddedSvg embedded in embedded_svg) { - svg.append ("<svg>"); + svg.append ("""<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">"""); svg.append ("\n\n"); + svg.append ("<g id="); svg.append ("\""); svg.append ("glyph"); @@ -226,7 +227,6 @@ fd.add_ushort (entry.glyph_id); // end fd.add_ulong (document_offset); // offset fd.add_ulong (entry.data.length_with_padding ()); // length - document_offset += entry.data.length_with_padding (); }