2

Point text was just released in QGIS 3.22. Is there a way to create a black border around the text?

0

2 Answers 2

8

For the new annotation layers, see the documentation.

To create a frame around your text, proceed as follows:

  1. Use the Mask tab, check the box Draw background, set Shape to rectangle

  2. Click on the Configure symbol bar (red arrow in the screenshot) and as Symbol layer type select Outline: simple line and style the line as you wish.

  3. To have the text in the middle of the frame, you might need to adapt values: select Size type : Buffer and set value for Size X, Size Y and Offset X,Y.

enter image description here

4
  • This looks perfect! I will try it out!
    – bdelliott
    Commented Jan 3, 2022 at 21:14
  • This works great!! Thanks!!
    – bdelliott
    Commented Jan 4, 2022 at 0:51
  • It is possible to create point text annotations that are driven from a spatial dataset (specifying latitude & longitude) or from python code?
    – bdelliott
    Commented Oct 16, 2022 at 16:22
  • Please post this as another question - here in the comments, it gets lost.
    – Babel
    Commented Oct 16, 2022 at 16:45
7
  • If you don't use a buffer around the text, you can use a buffer for the border.

    Before:
    enter image description here

    After:
    enter image description here

  • If you also want to use a buffer, you can use "Layer Rendering" > "Draw effects" for the buffer.

    enter image description here

2
  • I guess you mean a frame by border, right? The answer is about the strokes of the letter. :( Commented Jan 3, 2022 at 10:03
  • Correct I meant border and not strokes of the letter.
    – bdelliott
    Commented Jan 3, 2022 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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