I have a multitude of rectangles drawn in my map composer. I have also separate text boxes for them.
I am wondering about the possibility of including the text content for drawn rectangles or other shapes. Is it possible?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI have a multitude of rectangles drawn in my map composer. I have also separate text boxes for them.
I am wondering about the possibility of including the text content for drawn rectangles or other shapes. Is it possible?
You mean to insert text inside a shape, as in Office Word. It is not possible to include a text content for layout shapes because they don't have any property for text.
Eventually you will need to use auxiliary items (separate textbox) or you can add a font symbol layer for the shape as follows:
Click "Style" box.
Add a new symbol layer. Select "Centroid Fill".
Change "Simple Marker" to "Font Marker".
Set "Size" and "Characters"
You can add a border to your textboxes and style it, as you wish. No need to draw rectangles in the first place.