Clone in a terminal:
Commit 520d410
Johan Mattsson - 2014-09-26T15:24:35+00:00
520d41083e479e35cbe906e5287ba60c59a9706bjohan.mattsson.m@gmail.com

Use unicode character as name in svg fonts

Changed files (2)

Diff

diff --git a/libbirdfont/SvgFont.vala b/libbirdfont/SvgFont.valaindex e468c21..4f6f6c0 100644--- a/libbirdfont/SvgFont.vala+++ b/libbirdfont/SvgFont.vala@@ -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; 		diff --git a/resources/linux/birdfont-import.1 b/resources/linux/birdfont-import.1index aefa2a1..e41b452 100644--- a/resources/linux/birdfont-import.1+++ b/resources/linux/birdfont-import.1@@ -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.

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112