Fixing invalid footer font when font is extra large and adjusting layout calculation to be more resilient.