Added code to calculate the stroke width of a font