adjusted the placeText method to automatically set the font size according with a box width limit