Find and set optimal frame height.
Set font size.