Sub topic 3
Selecting, Editing and Transforming Text
This chapter assumes you can create point text and paragraph text with the Type tool and that you know the Layers panel and Options bar. It covers how to select text, edit it, and transform it without turning it into pixels.
Two ways to select: the layer or the characters
Photoshop stores text on a type layer. You can work on it at two levels, and many mistakes come from mixing them up.
- Layer level. You select the whole type layer in the Layers panel, or with the Move tool. Any change you make applies to all the text in the layer.
- Character level. You are in edit mode, with the Type tool active and a blinking cursor or a highlighted range inside the text. A change applies only to the highlighted characters.
You can tell which level you are on by looking at the Options bar and the canvas. In edit mode the text shows a cursor or highlight, and the Options bar shows a check mark and a cancel icon. At layer level the text has no cursor. A layer is selected, but no characters are.
Selecting characters
With the Type tool active and the cursor inside a text layer, these shortcuts select text.
| Action | Result |
|---|---|
| Drag across text | Selects the dragged range |
| Double-click | Selects one word |
| Triple-click | Selects one line |
| Quadruple-click | Selects the whole paragraph |
| Ctrl/Cmd+A | Selects all text in the layer |
| Shift+Left/Right Arrow | Extends the selection by one character |
| Ctrl/Cmd+Shift+Left/Right Arrow | Extends the selection by one word |
| Shift+Up/Down Arrow | Extends the selection by one line |
| Home or End | Moves the cursor to the start or end of the line |
A useful shortcut: with a text layer selected in the Layers panel, double-click its T thumbnail. Photoshop switches to the Type tool and selects all the text in that layer. This is the fastest way to restyle a whole layer from the Character panel.
Selecting without a cursor
If you want to change a whole layer, you often do not need character selection at all. Select the layer, then change settings in the Character or Paragraph panel. The change applies to every character. This is also safer. If the text has mixed formatting, such as one bold word, a layer-level change to the font will overwrite it. A character-level change to only the bold word leaves the rest alone.
Entering, committing and canceling an edit
Click once on existing text with the Type tool to place the cursor in it. If you click on empty canvas or on a different object, Photoshop creates a new type layer instead. This is a common error: you meant to edit, but you clicked a few pixels outside the text and got an empty layer named after nothing.
To finish an edit you must commit it.
- Click the check mark in the Options bar.
- Press Ctrl+Enter (Windows) or Cmd+Return (macOS).
- Press Enter on the numeric keypad.
- Select another layer or choose another tool.
To abandon the edit, press Esc or click the cancel icon. Text changes made during that edit session are discarded.
While you are in edit mode, many menu commands and tools are unavailable. Filters, most adjustments and many selection commands are grayed out. If a menu item is gray and you cannot see why, check whether you are still in an uncommitted text edit.
Empty layers
If you click with the Type tool and then switch away without typing, Photoshop deletes the empty type layer automatically. If an empty layer survives, for example one created by a script, delete it from the Layers panel.
Editing text content
Once in edit mode, text behaves much like text in a word processor.
- Type to insert at the cursor. Select a range and type to replace it.
- Backspace and Delete remove characters as expected.
- Ctrl/Cmd+C, X and V copy, cut and paste within a layer or between layers.
- Enter starts a new paragraph. Shift+Enter inserts a line break inside the same paragraph.
The difference between Enter and Shift+Enter matters later. Paragraph settings such as space before and after, indents and first-line indent apply once per paragraph. If you use Enter for every line break in a poem, each line gets the paragraph spacing. If you use Shift+Enter, the lines belong to one paragraph and spacing does not appear between them.
Find and Replace Text
Choose Edit > Find and Replace Text to search type layers in the current document. It offers Search All Layers, Case Sensitive, Whole Word Only and Forward options. It only searches layers that are still live text. Rasterized text cannot be found because it is no longer text.
Spell checking
Edit > Check Spelling checks the text in the document against the dictionary for the current language. Each text layer has a language setting in the Character panel, and that setting decides which dictionary applies. Text with the wrong language set produces many false errors.
Pasting and plain text
When you paste text copied from another application, Photoshop usually brings in the characters but not the source formatting. The text takes on the formatting at the cursor. If you paste a long block into point text, it forms one very long line. Convert to paragraph text first so the lines wrap. The next section describes how.
Moving and aligning text layers
You move a type layer like any other layer. Use the Move tool, or hold Ctrl/Cmd while the Type tool is active and drag the text. The Ctrl/Cmd method moves the layer without leaving the Type tool.
With the Move tool, Auto-Select controls what a click picks. Set to Layer, it picks the topmost layer under the pointer that has visible pixels there. Thin text can be hard to hit this way. Turn Auto-Select off and choose layers in the Layers panel, or hold Ctrl/Cmd to toggle it temporarily.
To align text with other layers, select the layers and use the alignment buttons in the Options bar. These align by layer bounds. For point text, the bounds are based on the text's glyph shapes, which can differ from the baseline position you see.
Transforming text
Photoshop lets you transform live text with Edit > Free Transform (Ctrl/Cmd+T) or Edit > Transform. For a type layer, the following changes keep the text editable:
- Scale, including non-proportional scale.
- Rotate.
- Flip horizontal and vertical.
- Skew is allowed in Free Transform and on paragraph text.
The text stays live because Photoshop stores the transform as a property of the layer. The font, characters and formatting are all kept.
Two transforms are not available on live text. Perspective and Distort are grayed out in the Transform menu, because they cannot be described by the text engine. To use them, you must first convert the layer: rasterize it, convert it to shape, or convert it to a Smart Object. Chapter 11 covers those choices. Warp is available as a separate feature, and a later chapter covers it.
Scaling text and the size display
When you scale live text with Free Transform, Photoshop does not change the font size you chose in a hidden way. It stores a transform. The Character panel can then show a size that no longer matches what you see. If you scale a 12 pt layer by 200%, the Character panel may show a size of 24 pt. The reported value comes from the combination of nominal size and transform. This is expected, and you can edit the size in the Character panel like any other value.
Distortion has consequences. A non-proportional scale stretches the letterforms, so thick and thin strokes no longer look as the type designer intended. Use it sparingly. If you need a narrower or wider look, a different font width is usually better than a distorted one.
Transforming paragraph text versus point text
Point text and paragraph text behave differently under transform.
- Point text: Dragging a corner handle scales the text itself, which changes its size.
- Paragraph text: With the Type tool in edit mode, dragging a handle on the bounding box changes the box and the text re-wraps. The size does not change. If you use Free Transform (Ctrl/Cmd+T) on the layer, the whole box and its text scale together.
Hold Ctrl/Cmd while dragging a bounding box handle in edit mode to scale the text with the box instead of just resizing it.
Convert between point and paragraph text
Select the layer and choose Type > Convert to Paragraph Text or Type > Convert to Point Text. Converting from paragraph to point text puts a line break at the end of every wrapped line. Any text that overflowed the box and was hidden is lost in the conversion, so enlarge the box first and check for the overflow marker, a small plus sign in the bottom-right handle.
You can also do this from a script. The scripting chapter shows the full code, which uses item.kind = TextType.PARAGRAPHTEXT.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| A new empty layer appears instead of editing | The click missed the text | Click directly on a letter, or double-click the T thumbnail |
| Menu items are grayed out | An edit has not been committed | Commit with Ctrl/Cmd+Enter |
| Format change affects all text | The layer was selected, not the characters | Select the characters first |
| Perspective or Distort is unavailable | Live text does not allow them | Convert the layer first |
| Hidden text after a resize | Paragraph box is too small | Drag the box larger, or check the overflow plus sign |
| Find and Replace does not find text | The layer was rasterized | Edit the pixels, or recreate the text |
Practice checklist
- Create a point text layer with a sentence of about ten words.
- Double-click its T thumbnail and confirm that all text is highlighted.
- Double-click one word, make it bold, and commit with Ctrl/Cmd+Enter.
- Press Ctrl/Cmd+T and rotate the layer by 10 degrees. Check that you can still edit the text.
- Convert the layer to paragraph text, then drag the box narrower and watch the text re-wrap.
Exercise
You select a type layer in the Layers panel, then change the font in the Character panel. All the text changes, including one word you had set in a different font. You wanted to change only the first line. What should you have done, and why did the other word change?
Show answer
Selecting the layer applies Character panel changes to every character in it, which overwrote the different font on that word. To change only the first line, use the Type tool, click in the text, triple-click the first line to select it, change the font, and then commit the edit with Ctrl/Cmd+Enter. Character-level selection limits the change to the highlighted range.
Exercise
A colleague says they cannot use Distort on a headline, and the option is grayed out. The headline must stay editable for later changes. What are two ways to get the effect, and what is the trade-off of each?
Show answer
Convert the layer to a Smart Object, then apply Distort. The pixels are transformed non-destructively, but the text inside is edited by opening the Smart Object, not directly on the canvas. Alternatively, keep a hidden copy of the live text layer and rasterize or convert to shape a duplicate for Distort. The duplicate is no longer live text, but the hidden original remains editable. Warp is another option when the effect is a curve rather than a corner-by-corner distortion.