def ex_ratio(style):
    font_size = 1000  # big value
    layout = text.Layout(hinting=False, font_size=font_size, style=style)
    layout.set_text('x')
    line, = layout.iter_lines()
    _, ink_height_above_baseline = text.get_ink_position(line)
    # Zero means some kind of failure, fallback is 0.5.
    # We round to try keeping exact values that were altered by Pango.
    return round(-ink_height_above_baseline / font_size, 5) or 0.5
Rebuild the api cache from scratch
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/ex_ratio--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/internal/apicache.py/ApiCache.rebuild