def passedFilter(font):
    return ((not filterByFontPurpose) or (font.purpose in filterByFontPurpose))
def passedFilter(font):
    return ((not filterByFontPurpose) or (font.purpose in filterByFontPurpose))