use init_text_pointer in set_text_pointer