fixed a bug in arc endPoint calculation and finished arc segment intersections with texts