Added scaling of the text so that the value will always fit well within the background.