adding flag for text paint