update layout if font is changed