code: def com_google_fonts_check_metadata_normal_style(ttFont, font_metadata):
    
    from fontbakery.utils import get_name_entry_strings
    from fontbakery.constants import MacStyle
  
    if font_metadata.style != "normal":
      yield SKIP, "This check only applies to normal fonts."
      # FIXME: declare a common condition called "normal_style"
    else:
      font_familyname = get_name_entry_strings(ttFont, NameID.FONT_FAMILY_NAME)
      font_fullname = get_name_entry_strings(ttFont, NameID.FULL_FONT_NAME)
      if len(font_familyname) == 0 or len(font_fullname) == 0:
        yield SKIP, ("Font lacks familyname and/or"
                     " fullname entries in name table.")
        # FIXME: This is the same SKIP condition as in check/metadata/italic_style
        #        so we definitely need to address them with a common condition!
      else:
        font_familyname = font_familyname[0]
        font_fullname = font_fullname[0]
  
        if bool(ttFont["head"].macStyle & MacStyle.ITALIC):
          yield FAIL, Message("bad-macstyle",
                              ("METADATA.pb style has been set to normal"
                               " but font macStyle is improperly set."))
        elif font_familyname.split("-")[-1].endswith('Italic'):
          yield FAIL, Message("familyname-italic",
                              ("Font macStyle indicates a non-Italic font, but"
                               " nameID {} (FONT_FAMILY_NAME: \"{}\") ends with"
                               " \"Italic\".").format(NameID.FONT_FAMILY_NAME,
                                                      font_familyname))
        elif font_fullname.split("-")[-1].endswith("Italic"):
          yield FAIL, Message("fullfont-italic",
                              ("Font macStyle indicates a non-Italic font but"
                               " nameID {} (FULL_FONT_NAME: \"{}\") ends with"
                               " \"Italic\".").format(NameID.FULL_FONT_NAME,
                                                      font_fullname))
        else:
          yield PASS, ("METADATA.pb font.style \"normal\""
                       " matches font internals.")
docs: METADATA.pb font.style "normal" matches font internals?