I'd like to have a layer mask in Gimp that includes some text. I currently have a method of achieving this, but it's a little more crude than I'd like.
In this image, the top text is a simple text layer sitting over a plain blue background. The bottom text is the result of the following procedure:
Create a plain background and a separate text layer.
In the layers dialog, right click on the text layer, and select, "Alpha to Selection".
Hide the text layer, select the background layer, right click and select, "Add Layer Mask".
In the resulting dialog, select to initialize the layer mask to "White (full opacity)"
Selecting the 'Bucket Fill Tool' with the colour black, fill the selected area.
In the layers dialog, right click the blue background layer, and select, "Apply Layer Mask".
Create a new black background behind the blue layer.
The difference is small, but noticeable (especially since I scaled the image up to 500%). It does slightly change the look of a font.
It's perhaps more noticeable as a gif:
My question is, how can I add text to a layer mask without losing any of the fine details of the font?