Calculate the baseline position for a font.