Thanks for replying, it's a good idea for select the boundary by offset bounding box, but how many offset does the bounding box need to get the boundary if distance of the boundary is much greater than the bounding box? Doesn't it affect the speed of the program if lots of texts is selected?