I split the vertical viewport width by the count of chars appearing. After this is done i try matching the width of the element to its parent by increasing the font size in px.
This awesome code ( Scale text with parent or window width | refit ) is write by juicyarts, you can se more from this user in the personal repository
You can find the original code on Codepen.io
2018 © juicyarts