def get_advances(text, font, extra_parameters=None):
    """Get a list of horizontal advances for text rendered in a font."""
    try:
        return _advance_cache[(text, font, extra_parameters)]
    except __HOLE__:
        pass

    hb_output = _run_harfbuzz(text, font, None, extra_parameters)
    advances = [glyph['ax'] for glyph in hb_output]
    _advance_cache[(text, font, extra_parameters)] = advances
    return advances
dataset/ETHPy150Open googlei18n/nototools/nototools/unittests/layout.py/get_advances