Text Effects
What Are Text Effects?
Text effects are visual treatments added to type, such as shadows, outlines, glows, background boxes and curved baselines. Some give a headline personality, while others keep words readable by setting them apart from the busy photo or video behind them.
Test an effect over a busy photo
Pick an effect, then check how much of each letter’s edge still stands out from the photo behind it.
- Contrast at the weakest 5% of edges
- …
- Edges under 3:1
- …
- WCAG AA minimum for large text
- 3:1
In CE.SDK: The text fill alone, no stroke, shadow or background.
The photo loads when you scroll here.
What Are the Main Types of Text Effects?
Most text effects fall into six groups, and designs often combine two of them, such as an outline with a drop shadow.
Shadows
A darker copy of the letters set behind them. A soft drop shadow lifts text off the background, and a solid shadow extended at an angle turns it into 3D lettering.
Outlines
A stroke around every letter in a second color. With the fill switched off, only the outline remains and whatever lies behind shows through the letters.
Glows
A shadow that sits directly behind the letters, blurred wide so it spreads evenly around them. In a bright color on a dark background, it reads as neon.
Background boxes
A solid or semi-transparent shape behind the words. Most BBC subtitles, for example, set white words on a black background.
Curved text
Words set along an arch or a circle instead of a straight line, which is why so many badges and logos use it.
Fills and textures
A gradient or a worn, printed texture inside the letters instead of one flat color, often used for a vintage look.
Which Text Effects Keep Text Readable Over a Photo?
Effects that put a contrasting color right behind the edge of every letter keep text readable over a photo, because WCAG measures contrast against whatever sits immediately behind the letters. The W3C names a halo around text as one way to meet it when the photo alone would not.
In the tool above, an outline or a box keeps every edge of the headline above 3:1 on both photos, in white and in black. At caption size the margins shrink, and the box is the only effect that keeps every edge above the 4.5:1 that normal text needs on both photos and in both colors.
Effects that cover the edges
-
Outline
A stroke in the opposite color separates each letter from the photo, whatever lies behind it.
-
Box
A semi-transparent background evens out the busy part of the photo behind the words.
-
Glow on a headline
A dark glow behind light text, or a light glow behind dark text, covers nearly every edge like a soft outline.
Effects that leave edges uncovered
-
Drop shadow with an offset
It darkens one side of each letter, so the other side still meets the photo.
-
Outline only
With the fill off, the photo fills every letter and only the thin outline separates it.
-
Glow on a caption
At small sizes the blur spreads too thin to cover the edges of each letter.
Which Text Effect Should You Use?
Choose by what the text has to do and what lies behind it. A running club’s race poster, for example, can put a white headline with a dark outline over its course photo and set the date and start time on a dark box below it.
| Use | Why | |
|---|---|---|
| A headline over a busy photo | An outline or a glow | Every letter gets an edge in the opposite color |
| Captions over video | A box behind the words | The picture behind the words changes every frame |
| A neon-style title | A glow in a bright color | Glows read best on dark colors |
| Badges, seals and logos | Curved text | The words follow the round shape |
| Hollow lettering | An outline only, at a large size | The photo shows through each letter |
How Text Effects Work in CE.SDK
Every text block in CE.SDK has its own stroke, drop shadow and background color with padding and corner radius, so your users can build each effect from the tool above in the editor. A glow is the drop shadow left centered on the letters with a wide blur, and outline-only text is the stroke with the fill switched off.
The editor’s Styles button applies a style preset, a saved mix of font, color, outline, background and shadow, to the selected text in one click, and captions take presets the same way. The code below adds a “Readable over photos” preset whose outline and glow are sized from the font size when your users apply it, so one preset fits large and small text alike.
// A text style your users apply in one click: a dark outline and a soft
// dark glow behind light text, sized to the font size when applied.
engine.asset.addLocalSource('brand.text.styles');
engine.asset.addAssetToSource('brand.text.styles', {
id: 'readable-over-photos',
label: { en: 'Readable over photos' },
// Add meta.thumbUri so the Styles panel shows a thumbnail.
payload: {
stylePreset: {
blockType: '//ly.img.ubq/text',
mode: 'merge',
properties: {
'stroke/enabled': true,
'stroke/position': 'Outer',
'stroke/color': { r: 0, g: 0, b: 0, a: 1 },
'dropShadow/enabled': true,
'dropShadow/color': { r: 0, g: 0, b: 0, a: 0.8 },
'dropShadow/offset/x': 0,
'dropShadow/offset/y': 0,
},
scaleWithFontSize: [
{ property: 'stroke/width', ratio: 0.04 },
{ property: 'dropShadow/blurRadius/x', ratio: 0.2 },
{ property: 'dropShadow/blurRadius/y', ratio: 0.2 },
],
},
},
});
// List it in the text library, where the Styles button looks for presets.
cesdk.ui.updateAssetLibraryEntry('ly.img.text', {
sourceIds: ({ currentIds }) => [...currentIds, 'brand.text.styles'],
}); FAQs
A drop shadow is offset to one side, as if light falls on the text from an angle, while a glow has no offset and spreads evenly around every letter. On a CE.SDK text block both come from the drop shadow, which becomes a glow once its offset is zero and its blur is wide.
Put a contrasting color right behind the edge of every letter with an outline, a wide glow or a semi-transparent box, or darken the part of the photo behind the text. WCAG sets the minimum at 4.5:1, dropping to 3:1 when the text is large.
Yes. WCAG measures text against what sits right behind the letters, and the W3C names a halo of contrasting color around the letters as one way to reach the minimum when the background alone is too close in lightness.
Yes. An offset shadow covers only one side of each letter, a thin outline on small text leaves gaps, and switching the fill off lets a busy photo show through every letter.
Yes. In CE.SDK, captions take style presets the same way text does, so one preset can give every caption in a video the same outline, glow or background box.
Links
Documentation and references for this concept.
Creative Editor SDK
Gives every text block a stroke, a drop shadow and a background color your users set in the editor.
Text Effects
Add drop shadows and stroke outlines to text blocks through the Block API.
Add a Background
Put a background color behind text, with padding on each side and a corner radius.
Related Terms
Drop Shadow
A dark, softened copy of the object's shape placed behind it at an offset, which lifts the object off the background. It…
Outline / Stroke
A decorative border drawn around the boundary of a graphic block's shape, with configurable properties including color, …
Text Animation
An effect that moves on-screen text, such as a fade, a slide or a typewriter reveal, applied to the whole block or split…
Curved Text
Text whose baseline follows a curve, such as a circle, an arch or a wave, instead of a straight line. Design tools eithe…



