def styleMapStyleNameFallback(info):
    """
    Fallback to *openTypeNamePreferredSubfamilyName* if
    it is one of *regular*, *bold*, *italic*, *bold italic*, otherwise
    fallback to *regular*.
    """
    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
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
Fallback to *openTypeNamePreferredSubfamilyName* if
    it is one of *regular*, *bold*, *italic*, *bold italic*, otherwise
    fallback to *regular*.