Konstantin wrote:
'Alpha to selection' is a common method to get a selection from objects (like text) on a transparent layer but this selection is not 100% accurate.
You can work with it, but a better way is to right click on the text layer before you applied 'layer to image size' and choose 'text to path'.
This will create a path in the paths tab, from where you can call up a selection anytime you'll need it.
Using a path is also the best method to later apply a stroke to your text.
Alpha-to-selection is 100% accurate (selection is also transparency, when you think about it). Try this:
- create text
- alpha to selection
- add transparent layer
- bucket fill selection with same color as text layer
- top layer to "Difference" mode
- Layer>New from visible.
Check the histogram, all pixels are RGB(0,0,0), so there is no difference between the two layers.
Even if working with paths is a good idea when using text, paths aren't the only way to save a selection, you can use Select>Save to channel to save the selection as a channel and then restore it at will (it appears in the Channels list).