When you use the Horizontal Type Mask tool or Vertical Type Mask tool , you create a selection in the shape of the type. Type selections appear on the active layer, and can be moved, copied, filled, or stroked just like any other selection. For more information about working with selections, see About selections.
To create a type selection border:
Select the layer on which you want the selection to appear. For best results, create the type selection border on a normal image layer, not a type layer.
Select the Horizontal Type Mask tool or the Vertical Type Mask tool .
A red mask appears over the active layer as you enter the type. Once the type is committed, the type selection border appears in the image on the active layer.