Updated Files
libbirdfont/GlyphSequence.vala |
libbirdfont/Ligatures.vala |
libbirdfont/OpenFontFormat/ContextualLigature.vala |
--- a/libbirdfont/GlyphSequence.vala
+++ b/libbirdfont/GlyphSequence.vala
@@ -100,7 +100,16 @@
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);
--- a/libbirdfont/Ligatures.vala
+++ b/libbirdfont/Ligatures.vala
@@ -58,6 +58,10 @@
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 @@
gs = new GlyphSequence ();
foreach (string s in subst_names) {
+ if (s == "space") {
+ s = " ";
+ }
+
gc = font.get_glyph_collection_by_name (s);
if (gc == null) {
--- a/libbirdfont/OpenFontFormat/ContextualLigature.vala
+++ b/libbirdfont/OpenFontFormat/ContextualLigature.vala
@@ -169,6 +169,11 @@
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) {