Method to reinit font and resize panel.