restrict font size by Layout.maxFontSize