docs: def com_google_fonts_check_name_mandatory_entries(ttFont, style):
    """Font has all mandatory 'name' table entries ?"""
    from fontbakery.utils import get_name_entry_strings
    from fontbakery.constants import RIBBI_STYLE_NAMES
  
    required_nameIDs = [NameID.FONT_FAMILY_NAME,
                        NameID.FONT_SUBFAMILY_NAME,
                        NameID.FULL_FONT_NAME,
                        NameID.POSTSCRIPT_NAME]
    if style not in RIBBI_STYLE_NAMES:
      required_nameIDs += [NameID.TYPOGRAPHIC_FAMILY_NAME,
                           NameID.TYPOGRAPHIC_SUBFAMILY_NAME]
    failed = False
    # The font must have at least these name IDs:
    for nameId in required_nameIDs:
      if len(get_name_entry_strings(ttFont, nameId)) == 0:
        failed = True
        yield FAIL, (f"Font lacks entry with nameId={nameId}"
                     f" ({NameID(nameId).name})")
    if not failed:
      yield PASS, "Font contains values for all mandatory name table entries."