Add a box around a sentence

Hello,

I was wondering if I could add a background only around a sentence (not as a full screan background).( see example attached)


I have different lengths of sentences so I want to add a background around each sentence according to its length. I could add a white background image and change size according to length in an excel file and add its attribute to the parametrs of the image. However, I would like to know if there are other ways to accomplish that.

Thank you in advance!
Hadeel

I think that’s pretty much how I’d solve it! So set the size of the textbox to be $(len(text)*scale+padding*2, height) (where text is the contents,scale is the width of one letter, padding is how much space you want either side and height is the height of the box)

1 Like