Render the text in the info box once and reuse the path

Previously, it was rendered twice: Once to compute the extents of the
yellow box around it and once to actually draw it.