I'm a little late here, I'm not very grateful for that, I just collect the answers below because I was forced to do this for the project.
So, to answer the question: There is no such thing as this CSS property . I don’t know why, but I think because they are afraid of abuse of this property, but I do not find any use case where this can be a serious problem.
Whatever the solutions?
Two tools will allow us to do this: media queries ans vw property
1) There is a "stupid" solution, consisting in creating a media query for each step that we use in our css, changing the font from a fixed amount to another fixed amount. It works, but it is very boring, and you do not have a smooth linear aspect.
2) As almost Pitt explained, for lows there is a gloss solution:
font-size: calc(7px + .5vw);
The minimum here will be 7px in addition to 0.5% of the width of the view. This is already really cool and works in most cases . It does not require any multimedia queries, you just need to spend some time looking for the right parameters.
As you noticed, this is a linear function, basic mathematicians will find out that two points already find your parameters. Then just correct the font size in px that you want for very large screens and for the mobile version, and then figure out if you want to make a scientific method. Thought this is absolutely unnecessary, and you can just try it.
3) Suppose you have a very boring client (for example, I) who absolutely wants the name to be one line and no more. If you used the AlmostPitt solution, you have problems because your font will grow, and if you have a container with a fixed width (for example, when loading in 1140px or in large windows). Here I suggest you also use a media query. In fact, you can simply find the maximum maximum pixel size that you can process in your container before this aspect becomes undesirable (pxMax). This will be your maximum. Then you just need to find the exact width of the screen you should stop (wMax). (I will let you invert the linear function yourself).
After that just do
@media (min-width: [wMax]px) { h2{ font-size: [pxMax]px; } }
Then it is perfectly linear and your font stops growing! Note that you do not need to put your previous css (calc ...) property in a wMax media request, because the media request is considered more important and it will overwrite the previous property.
I don’t think it’s useful to make a fragment for this, since it will be difficult for you to make it full screen, and this is not a science rocket.
Hope this helps others, and don't forget to thank AlmostPitt for his solution.