def resolve_font(name):
    for fontdir, fontfiles in get_font_files():
        for fontfile in fontfiles:
            if name.lower() in fontfile.lower():
                return os.path.join(fontdir, fontfile)
    raise FontNotFound("Can't find %r :'(  Try adding it to ~/.fonts")
Sloppy way to turn font names into absolute filenames
dataset/ETHPy150Open jart/fabulous/fabulous/text.py/resolve_font