docs: def com_google_fonts_check_metadata_nameid_font_name(ttFont, style, font_metadata):
    """METADATA.pb font.name value should be same as
       the family name declared on the name table.
    """
    from fontbakery.utils import get_name_entry_strings
    from fontbakery.constants import RIBBI_STYLE_NAMES
  
    if style in RIBBI_STYLE_NAMES:
      font_familynames = get_name_entry_strings(ttFont, NameID.FONT_FAMILY_NAME)
      nameid = NameID.FONT_FAMILY_NAME
    else:
      font_familynames = get_name_entry_strings(ttFont, NameID.TYPOGRAPHIC_FAMILY_NAME)
      nameid = NameID.TYPOGRAPHIC_FAMILY_NAME
  
    if len(font_familynames) == 0:
      yield FAIL, Message("lacks-entry",
                          (f"This font lacks a {NameID(nameid).name} entry"
                           f" (nameID={nameid}) in the name table."))
    else:
      for font_familyname in font_familynames:
        if font_familyname != font_metadata.name:
          yield FAIL, Message("mismatch",
                              ("Unmatched familyname in font:"
                               " TTF has \"{}\" while METADATA.pb has"
                               " name=\"{}\".").format(font_familyname,
                                                       font_metadata.name))
        else:
          yield PASS, ("OK: Family name \"{}\" is identical"
                       " in METADATA.pb and on the"
                       " TTF file.").format(font_metadata.name)