The string s is drawn in the center of a box from (x1,y1) to (x2,y2) with the font font. If font is not given, the font is selected depending on the box size.