Fixes spacing in the text layer builder
Merge pull request #4633 from yurydelendik/tlspacing

Fixes spacing in the text layer builder
Fix #3483 and simplify readCodingpasses()