I have used a button, where the text font size is readjusted based on the length of user input. I have used fontSizeMode, minimumPointSize and font.pointSize properties to auto resize the text.Now I need to fetch the font size, which varies at runtime.