Create the text object.
Open the Image Toolbox from the Edit menu.
Add a Simple Backdrop to the text object. Match the color of the background and set transparency factor 0.
Add a Scalable Backdrop. Set a border width of 1 pixel high and wide, corner radius 0, color black and transparency factor 0.