Proper font size calculation

Now font size is calculated to fit text in a container respecting both width and height
User can specify fixed width and if text will be changed during execution, font size will be matched to container dimensions