docs: def com_google_fonts_check_metadata_italic_style(ttFont, font_metadata):
    """METADATA.pb font.style "italic" matches font internals?"""
    from fontbakery.utils import get_name_entry_strings
    from fontbakery.constants import MacStyle
  
    if font_metadata.style != "italic":
      yield SKIP, "This check only applies to italic fonts."
    else:
      font_fullname = get_name_entry_strings(ttFont, NameID.FULL_FONT_NAME)
      if len(font_fullname) == 0:
        yield SKIP, "Font lacks fullname entries in name table."
        # this fail scenario was already checked above
        # (passing those previous checks is a prerequisite for this one)
        # FIXME: Could we pack this into a condition ?
      else:
        # FIXME: here we only check the first name entry.
        #        Should we iterate over them all ? Or should we check
        #        if they're all the same?
        font_fullname = font_fullname[0]
  
        if not bool(ttFont["head"].macStyle & MacStyle.ITALIC):
          yield FAIL, Message("bad-macstyle",
                              "METADATA.pb style has been set to italic"
                              " but font macStyle is improperly set.")
        elif not font_fullname.split("-")[-1].endswith("Italic"):
          yield FAIL, Message("bad-fullfont-name",
                              ("Font macStyle Italic bit is set"
                               " but nameID {} (\"{}\") is not ended with"
                               " \"Italic\"").format(NameID.FULL_FONT_NAME,
                                                     font_fullname))
        else:
          yield PASS, ("OK: METADATA.pb font.style \"italic\""
                       " matches font internals.")