There is no need to do any coding or even use a shortcode. It really couldn’t be simpler.
The text will fit the element of its container. You can play with the settings so that you create your optimum appearance preference. Or you can set it up based on the golden typography ratio. We’ve made it completely DMS compatible all you have to do is play.
Using FlowType.JS this DMS plugin improves typography. In Site Settings a new panel will allow you to enter settings to enhance typography – where the text is sized based on the element width it is contained in and the browser of the user.