Sub topic 3
Reusing Formatting, Warping, Rasterizing, and Scripting Text in Photoshop
This chapter assumes you can create type layers with the Type tool, use the Character and Paragraph panels, and read the Layers panel. Knowledge of the Actions panel and basic ExtendScript is helpful for the last section.
Reusing formatting with character and paragraph styles
A character style stores font, size, color, and tracking for selected text. A paragraph style stores those settings plus alignment, indents, and spacing. Create a style from the Character or Paragraph Styles panel, then apply it with one click. When you edit the style, every layer that uses it updates.
Warping text and setting text on a path
Warp (Type > Warp Text) bends a text layer into shapes such as an arc or flag. Text on a path flows along a pen or shape path. Both effects keep the text editable, so you can still change the wording later.
Rasterizing, converting to shapes, and using Smart Objects
Rasterizing turns text into pixels. The result cannot be edited as text, so keep an unrasterized copy if you might change the words. Converting to shape creates vector outlines that scale cleanly but also lose their text editing. A Smart Object keeps the original text editable while letting you apply filters or transforms. Use a Smart Object when the text needs effects and must stay editable.
Choosing an anti-aliasing method
Anti-aliasing smooths the edges of text by blending pixels along the outline. Use Smooth for most text. Use Sharp or Crisp for small screen text where crisp strokes matter more than smooth curves. Use Strong for heavy display type that looks thin.
OpenType and variable font features
OpenType is a font format that can include alternate glyphs, ligatures, and fractions. Open the Character panel's OpenType menu to turn these on. Variable fonts expose axes such as weight or width that you can adjust with sliders. Check that a font supports a feature before you depend on it.
Building legible layouts with typographic hierarchy
Typographic hierarchy means that headings, subheadings, and body text differ clearly in size and weight. Use a small number of sizes, such as three or four, and apply them through styles. Consistent styles make layouts easier to read and easier to update.
Creating and styling text layers with a script
ExtendScript can set text properties directly. The script below sets the contents, size, font, and anti-aliasing method of the active text layer.
// ExtendScript: update the active text layer
var doc = app.activeDocument;
var layer = doc.activeLayer;
if (layer.kind == LayerKind.TEXT) {
var item = layer.textItem;
item.contents = "Hello, Photoshop";
item.size = new UnitValue(48, "pt");
item.font = "ArialMT";
item.antiAliasMethod = AntiAlias.SMOOTH;
} else {
alert("Select a text layer first.");
}Run the script from File > Scripts > Browse.
Exercise
Exercise
You need text that keeps its wording editable and also gets a drop shadow. Which option should you choose?
Show answer
Convert the type layer to a Smart Object, then add the drop shadow as a layer style. Rasterizing would remove the editable text.