Fix calculation of total window sizes after font size changes (Bug#19972).