7

I have a multitude of rectangles drawn in my map composer. I have also separate text boxes for them.

enter image description here

I am wondering about the possibility of including the text content for drawn rectangles or other shapes. Is it possible?

3
  • No problem. WIll know in the future.
    – MKR
    Jan 12 at 12:20
  • Do you mean to add a text to shape or to have a text with border? Jan 12 at 12:40
  • Add text to a shape
    – MKR
    Jan 12 at 12:41

2 Answers 2

9

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.

    enter image description here

  • Add a new symbol layer. Select "Centroid Fill".

    enter image description here

  • Change "Simple Marker" to "Font Marker".

    enter image description here

  • Set "Size" and "Characters"

    enter image description here

enter image description here

1
  • I have never thought about it this way! Thanks a lot!
    – MKR
    Jan 12 at 12:41
5

You can add a border to your textboxes and style it, as you wish. No need to draw rectangles in the first place.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.