def fonts_are_basically_the_same(font1, font2):
    return (font1.family == font2.family and
            font1.script == font2.script and
            font1.variant == font2.variant and
            font1.weight == font2.weight and
            font1.style == font2.style)
Returns true if the fonts are the same, except perhaps hint or platform.
dataset/ETHPy150Open googlei18n/nototools/nototools/generate_website_data.py/fonts_are_basically_the_same