Work on implementation of text layout