The string s is drawn at the position (x,y). The font font is used. If the text width exceeds width this part is not drawn.