If the length of the text is more than 10 thousand characters - the font size is 14(this is the minimum)
If the text length is less than 50 characters - the font size is 32(this is the maximum)

What will be the font size if the text comes 2000 characters?

2 Answers 2

Interpolation.
With interpolation, you need to select a font, say, 14.7pt(so choose 14 or 16 pt?).

If in CSS + JS, you can:
https://css-tricks.com/set-font-size-based-on-word...