Fixes spacing in the text layer builder

Fixes #4631