def com_google_fonts_check_metadata_match_name_familyname(family_metadata, font_metadata):
  """METADATA.pb: Check font name is the same as family name."""
  if font_metadata.name != family_metadata.name:
    yield FAIL, ("METADATA.pb: {}: Family name \"{}\""
                 " does not match"
                 " font name: \"{}\"").format(font_metadata.filename,
                                              family_metadata.name,
                                              font_metadata.name)
  else:
    yield PASS, "Font name is the same as family name."
def com_google_fonts_check_metadata_match_name_familyname ( family_metadata , font_metadata ) : if font_metadata . name != family_metadata . name : yield FAIL , ( "METADATA.pb: {}: Family name \"{}\"" " does not match" " font name: \"{}\"" ) . format ( font_metadata . filename , family_metadata . name , font_metadata . name ) else : yield PASS , "Font name is the same as family name."
METADATA.pb: Check font name is the same as family name.