text layout improvements