diff options
Diffstat (limited to 'scripts/lib/fontbuild/markFeature.py')
-rwxr-xr-x | scripts/lib/fontbuild/markFeature.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/fontbuild/markFeature.py b/scripts/lib/fontbuild/markFeature.py index f3ba7c4..e2c4a38 100755 --- a/scripts/lib/fontbuild/markFeature.py +++ b/scripts/lib/fontbuild/markFeature.py @@ -93,6 +93,12 @@ def GenerateFeature_mark(font): classname = "@MC_" + anchor_name
accent_name_list = CreateAccNameList(font, acc_anchor_name, comb_accent_only)
+ if not accent_name_list:
+ print (
+ 'No glyph found with anchor "%s", skipping mark lookup for %s.' %
+ (acc_anchor_name, classname))
+ continue
+
accent_mark_list = CreateAccGlyphList(font, accent_name_list, acc_anchor_name)
base_mark_list = CreateGlyphList(font, accent_name_list, anchor_name)
text += Create_mark_lookup(accent_mark_list, base_mark_list, lookupname, classname, expand_to_composits)
|