I would like to label my maps like these in QGIS (image created using Photoshop): Image of contour label being shown on the contour lines with with white halo and then the colored raster layer above it is blended with multiply


Instead, it shows like this. White halos on the contour remains even if the contours are not visible, can not be blended with the layers above


Is there any way to create the first map in QGIS?


1 Answer 1


You can change the blend mode of the text buffer in label settings (see below).

enter image description here

Multiply works best if the buffer colour is a dark colour. However, that won't achieve what you have in your screenshot (see results below):

enter image description here

Instead, you should use the new Mask setting in QGIS 3.12 to mask out the line symbology in a buffer around the text.

First, in your label settings, disable any text buffers, and go to the Mask tab. Enable the mask with your desired "buffer" size.

enter image description here

Next, go to the Mask settings, and check your line symbology as the masked symbol layer (sorry it's not very clear in this screenshot). Then, select the label mask as the mask source (you will only see this option if you set it up in label settings in the previous step)

enter image description here

Now your line symbology will be masked out around the text per your request.

enter image description here

  • Thank you very much! This is awesome!😄 Jun 6, 2020 at 6:42

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.