def getFonts(self, filterByFontFormat=[], variableFont=None):
    '\n        Calculate list of fonts of this package by applying filters for\n        font.format and font.variableFont (possibly more in the future)\n        '

    def passedFilter(font):
        passed1 = ((not filterByFontFormat) or (filterByFontFormat and (font.format in filterByFontFormat)))
        passed2 = ((variableFont is None) or ((variableFont is not None) and (font.variableFont == variableFont)))
        return (passed1 and passed2)
    return [x for x in self.fonts if passedFilter(x)]
Calculate list of fonts of this package by applying filters for
font.format and font.variableFont (possibly more in the future)
def getFonts(self, filterByFontFormat=[], variableFont=None):
    '\n        Calculate list of fonts of this package by applying filters for\n        font.format and font.variableFont (possibly more in the future)\n        '

    def passedFilter(font):
        passed1 = ((not filterByFontFormat) or (filterByFontFormat and (font.format in filterByFontFormat)))
        passed2 = ((variableFont is None) or ((variableFont is not None) and (font.variableFont == variableFont)))
        return (passed1 and passed2)
    return [x for x in self.fonts if passedFilter(x)]