Translations: Scale Font to Component Size

Is there a way to have the size of the font automatically adjust to the size of the component?- Example: The English text on a button fits within the button size, but if the language is translated to Spanish the text no longer fits and it truncated with ‘…’ at the end of the word- I’d like to have the size of the font change to fit within the confines of the component to display the entire word-

Thanks Robert-

you can scale it to window size, not componet size, but that is really not a good idea xd

you could try adding in a wordbreak, causing it to go on the next line, or else overflow scroll bars xd

word-wrap: break-word
and if needed also
overflow:auto