Add warning message for special case in name table check
(issue
@@ -664,6 +664,21 @@ def check_main_entries_in_the_name_table(ttFont, style):
PLATID_STR[plat],
plat)
elif string != expected_value:
+
+ # special case for FULL_FONT_NAME:
+ # see https://github.com/googlefonts/fontbakery/issues/1436
+ if name.nameID == NAMEID_FULL_FONT_NAME \
+ and style == "Regular" \
+ and string == fname_with_spaces:
+ yield WARN, ("[{}({}):{}({})] entry:"
+ " Got '{}' which lacks 'Regular',"
+ " but is probably OK"
+ " in this case.").format(NAMEID_STR[nameid],
+ nameid,
+ PLATID_STR[plat],
+ plat,
+ unidecode(string))
+ else:
failed = True
yield FAIL, ("[{}({}):{}({})] entry:"
" expected '{}'"
