@register_computer('font-size')
def font_size(computer, name, value):
    if value in FONT_SIZE_KEYWORDS:
        return FONT_SIZE_KEYWORDS[value]
    # TODO: support 'larger' and 'smaller'

    parent_font_size = computer.parent_style['font_size']
    if value.unit == '%':
        return value.value * parent_font_size / 100.
    else:
        return length(computer, name, value, pixels_only=True,
                      font_size=parent_font_size)
Compute the ``font-size`` property.
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/font_size