Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a black rectangle, and I want it to look like a stencil, with "cut-out" text in the centre.

In this image, I have converted both objects to paths and used the boolean difference tool:

(I'm not allowed to post images yet, so imagine a black rectangle with transparent text in the centre.)

This works, but it's destructive; I can't edit the text anymore.

To be completely clear, given a gradient, a rectangle in front of that, and text in front of that, I want to set the text to "transparent" and see not the rectangle, not the gradient, but transparency/nothingness.

I want the transparency to override any other colour behind it; I want the result I had above, but non-destructive; if I were to put another object below the rectangle there, I don't want to see that object, I want to see transparency.

share|improve this question
When you add "if I were to put another object below the rectangle there, I don't want to see that object, I want to see transparency" - this seems to imply "live" boolean operations on groups of objects, or on all objects in a layer? – e100 Apr 10 '12 at 15:37
If you put something below everything and don't see it, you don't have a transparent hole or text, but a white one (or whatever your drawing background is). You never can see transparency. But I don't know a solution where you can later simply edit your text (for example for a translation into another language). – user unknown Aug 9 '15 at 2:52
up vote 3 down vote accepted

You could mask it, though Inkscape has some issues with masks and some export formats. But even with a mask, I believe you'd have to convert the text to paths.

What I'd do is just always keep a copy of your text+rectangle.

Set your text on your rectangle, then clone them, and use the clone to do the 'punch'. If you ever need to tweak the text again, clone the original again, and re-do it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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