Is there a way to adjust the font-size to fit a fixed box without using css overflow?

<div style="width : 50px"></div>

When the number of letters increases and leaves the area,
Is there a way to automatically reduce the font size instead of css overflow?