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