I am creating a sea chart. The sea chart has ships lanes in a line layer. In the same layer, the safe depth of the ship lane is found in a column. I want to use this safe depth as a label on the ship lane, which works without a problem. But to follow standard themathising rules and get a clear view of the number, I need the ships lane line not to be visible underneath and just around the number (see as an example of what I want QGIS to do the number 2,4 on the image below). Creating a white background under the text is not an option, this could cover other important features. So is it possible to make the line just disappear under the label and for instance 2mm on the sides of the label?