docs: def com_google_fonts_check_metadata_nameid_family_and_full_names(ttFont, font_metadata):
    """METADATA.pb font.name and font.full_name fields match
       the values declared on the name table?
    """
    from fontbakery.utils import get_name_entry_strings
  
    font_familynames = get_name_entry_strings(ttFont, NameID.TYPOGRAPHIC_FAMILY_NAME)
    if font_familynames:
        font_familyname = font_familynames[0]
    else:
        font_familyname = get_name_entry_strings(ttFont, NameID.FONT_FAMILY_NAME)[0]
    font_fullname = get_name_entry_strings(ttFont, NameID.FULL_FONT_NAME)[0]
    # FIXME: common condition/name-id check as in the two previous checks.
  
    if font_fullname != font_metadata.full_name:
      yield FAIL, Message("fullname-mismatch",
                          ("METADATA.pb: Fullname (\"{}\")"
                           " does not match name table"
                           " entry \"{}\" !").format(font_metadata.full_name,
                                                     font_fullname))
    elif font_familyname != font_metadata.name:
      yield FAIL, Message("familyname-mismatch",
                          ("METADATA.pb Family name \"{}\")"
                           " does not match name table"
                           " entry \"{}\" !").format(font_metadata.name,
                                                     font_familyname))
    else:
      yield PASS, ("METADATA.pb familyname and fullName fields"
                   " match corresponding name table entries.")