Commit 520d410
Use unicode character as name in svg fonts
Changed files (2)
Diff
@@ -235,6 +235,7 @@ class SvgFont : GLib.Object { string ligature = ""; SvgParser parser = new SvgParser (); Attribute attr;+ StringBuilder unicode_name; parser.set_format (SvgFormat.INKSCAPE); @@ -268,7 +269,10 @@ class SvgFont : GLib.Object { } } - glyph = new Glyph (glyph_name, unicode_value);+ unicode_name = new StringBuilder ();+ unicode_name.append_unichar (unicode_value);++ glyph = new Glyph (unicode_name.str, unicode_value); parser.add_path_to_glyph (svg, glyph, true, units); glyph.right_limit = glyph.left_limit + advance * units; @@ -12,10 +12,10 @@ or a Unicode value on the form U+XX where XX is the Unicode number in hexadecimal format. A drawing saved as "a.svg" will be added to the glyph "a" when you run:-birdfont-export typeface.bf a.svg+birdfont-import typeface.bf a.svg A drawing saved as "U+62.svg" will be added to "b" when you run: -birdfont-export typeface.bf U+62.svg+birdfont-import typeface.bf U+62.svg See also birdfont-export for creating SVG, EOT and TTF fonts from the birdfont file.