The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Save stylistic alternatives to bf fonts and make gsub features optional

Changes made to libbirdfont/OpenFontFormat/GsubTable.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OpenFontFormat/GsubTable.vala +++ libbirdfont/OpenFontFormat/GsubTable.vala @@ -39,7 +39,7 @@ if (alternate_feature.has_alternates ()) { Lookups aalt_lookup = alternate_feature.get_lookups (); - Feature aalt_feature_lookup = new Feature ("aalt", lookups); + Feature aalt_feature_lookup = new Feature ("salt", lookups); aalt_feature_lookup.add_feature_lookup (Lookups.ALTERNATES); features.add (aalt_feature_lookup); lookups.append (aalt_lookup); @@ -84,8 +84,8 @@ // LangSys table fd.add_ushort (0); // reserved - fd.add_ushort (0); // required features (0xFFFF is none) - fd.add_ushort (1); // number of features + fd.add_ushort (0xFFFF); // required features (0xFFFF is none) + fd.add_ushort ((uint16) features.features.size); // number of features fd.add_ushort (0); // feature index // feature lookups with references to the lookup list