Actually, with texts you don't need to know the width; the CENTER_X and CENTER_Y flags do this for you. Just make sure pos_x and pos_y are in the center of the screen (screen_size.x / 2, screen_size.y / 2).