code: def styleMapStyleNameFallback(info):
      
      styleName = getAttrWithFallback(info, "openTypeNamePreferredSubfamilyName")
      if styleName is None:
          styleName = "regular"
      elif styleName.strip().lower() not in _styleMapStyleNames:
          styleName = "regular"
      else:
          styleName = styleName.strip().lower()
      return styleName
docs: Fallback to *openTypeNamePreferredSubfamilyName* if
      it is one of *regular*, *bold*, *italic*, *bold italic*, otherwise
      fallback to *regular*.