update font and layout