String width ext

Example
var sep = 10, width = room_width/2; var strw = string_width_ext(longstring,sep,width); draw_set_color(c_white); draw_rectangle(room_width/2-strw/2,0,room_width/2+strw/2,string_height_ext(string,sep,width),false); draw_set_color(c_black); draw_text_ext(room_width/2-strw/2,0,longstring,sep,width);