def fitheight(data, bold=False):
    """Try to autofit Arial 10"""
    rowlen = len(data.split('\n'))
    if rowlen > 1:
        units = 230 * rowlen
    else:
        units = 290
    if bold:
        units *= 1.1
    return int(units)
