I have found that with XeTeX and fontspec package using the following value
{\addfontfeature{LetterSpace=15em plus.1em minus.1em}
instead of e.g.
{\addfontfeature{LetterSpace=15}
it gives good results as in this way the lines never cross the margin.
I would ask if there is a way to define a key for that value so I could avoid to write it every time. For example, I would obtain something similar of what it does the microtype package, where you can define the spacing value in the preamble and then just write \textls{textspaced} to apply it.
Thank you!
EDIT:
I would also ask if there is a possibility to set a more "dynamic" value to LetterSpace, because also with {\addfontfeature{LetterSpace=15em plus.1em minus.1em} I have some lines that go over the margin.