def get_glyphs(text, font, extra_parameters=None):
    """Get a list of shaped glyphs for text rendered in a font."""
    try:
        return _shape_cache[(text, font, extra_parameters)]
    except __HOLE__:
        pass

    hb_output = _run_harfbuzz(text, font, None, extra_parameters)
    shapes = [glyph['g'] for glyph in hb_output]
    _shape_cache[(text, font, extra_parameters)] = shapes
    return shapes
dataset/ETHPy150Open googlei18n/nototools/nototools/unittests/layout.py/get_glyphs