String width

Example
//Draw a background for the score. var xx=0, yy=0, padding=8, str="score: "+string(score); draw_set_color(c_white); draw_rectangle(xx,yy,xx+string_width(str)+padding*2,  yy+string_height(str)+padding*2,true); draw_set_color(c_black); draw_text(xx+padding,yy+padding,str);