Updated the font size formula so that the size is measured in DIPs instead of pixels