xHeight and weight calculation