calculate the button title font size dynamicly

Instead of truncating longer button titles calculate the font size to show them correctly.