Character spacing

I’m binding a paragraph from an excel sheet to a text asset and displaying them with a condensed font.

I would like to put a little space between each character to increase the legibility. Any ideas on how this can be accomplished?

Hi @j-geis,
A nice way to do this would be to use a custom converter with the following script:

_var textToAddSpaces = INPUT;_
_var newString = "";_
_for( var i = 0; i < textToAddSpaces.length; i++ ) _
_{ _
_ var character = textToAddSpaces.charAt(i);_
_ if(i === textToAddSpaces.length - 1) _
_ { newString += character;}_
_ else { newString += character + " ";}_
_}_
_newString;_

If you’re not familiar with custom converters, you can read about it here.

1 Like

Thank you, this will really come in handy.