Commit 1ef9d71
Substitutions for space character
Changed files (3)
modifiedlibbirdfont/GlyphSequence.valamodifiedlibbirdfont/Ligatures.valamodifiedlibbirdfont/OpenFontFormat/ContextualLigature.vala
Diff
@@ -100,7 +100,16 @@ public class GlyphSequence : GLib.Object { foreach (Alternate a in alternates) { GlyphSequence old = new GlyphSequence ();- Glyph? g = font.get_glyph_by_name (a.glyph_name);+ string name;+ Glyph? g;+ + name = a.glyph_name;+ + if (name == "space") {+ name = " ";+ }+ + g = font.get_glyph_by_name (name); if (g != null) { old.add (g);@@ -58,6 +58,10 @@ public class Ligatures : GLib.Object { lig = new GlyphSequence (); foreach (string n in font.get_names (ligature)) {+ if (n == "space") {+ n = " ";+ }+ gc = font.get_glyph_collection_by_name (n); if (gc == null) {@@ -69,6 +73,10 @@ public class Ligatures : GLib.Object { gs = new GlyphSequence (); foreach (string s in subst_names) {+ if (s == "space") {+ s = " ";+ }+ gc = font.get_glyph_collection_by_name (s); if (gc == null) {@@ -169,6 +169,11 @@ public class ContextualLigature : GLib.Object { gs = new GlyphSequence (); foreach (string s in font.get_names (context)) {+ + if (s == "space") {+ s = " ";+ }+ gc = font.get_glyph_collection_by_name (s); if (gc == null) {