---
title: "Text Effects: Common Types and How to Keep Text Readable - CE.SDK Glossary"
description: "Text effects are outlines, shadows, glows and boxes added to type. Test which ones keep text readable over a photo, and how your users add them in CE.SDK."
url: "https://img.ly/glossary/text-effects/"
type: "page"
---

> This is the markdown version of [Text Effects: Common Types and How to Keep Text Readable - CE.SDK Glossary](https://img.ly/glossary/text-effects/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

# 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.

The tool sets white or black text over one of two busy CE.SDK demo photos, as a bold 44 px headline or a 16 px caption, with no effect or with one of outline, shadow, glow, box or outline only. It measures the contrast between the text color and every pixel right behind the letters in the browser, reports the weakest 5% of those edges and the share under the WCAG AA minimum for that size, and names the CE.SDK text property that makes each effect.

## 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](https://img.ly/glossary/drop-shadow.md).

### 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](https://img.ly/glossary/curved-text.md) 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.

- **A headline over a busy photo**: Use: An outline or a glow, Why: Every letter gets an edge in the opposite color

- **Captions over video**: Use: A box behind the words, Why: The picture behind the words changes every frame

- **A neon-style title**: Use: A glow in a bright color, Why: Glows read best on dark colors

- **Badges, seals and logos**: Use: Curved text, Why: The words follow the round shape

- **Hollow lettering**: Use: An outline only, at a large size, Why: The photo shows through each letter

## How Text Effects Work in CE.SDK

Every text block in [CE.SDK](https://img.ly/products/creative-sdk.md) 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.

**Add a text style your users apply in one click**

```javascript
// 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'],
});
```

[AssetStylePreset](https://img.ly/docs/cesdk/js/api/engine/interfaces/assetstylepreset.md)

## FAQs

### Text effects

**Q: How is a glow different from a drop shadow on text?**

A: 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.

**Q: How do you make text readable over a photo?**

A: 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.

**Q: Do text effects count toward WCAG contrast?**

A: 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.

**Q: Can a text effect make text harder to read?**

A: 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.

**Q: Can text effects be used on video captions?**

A: 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

- [Creative Editor SDK](https://img.ly/products/creative-sdk.md): Gives every text block a stroke, a drop shadow and a background color your users set in the editor.
- [Text Effects](https://img.ly/docs/cesdk/js/text/effects-2dc9fc.md): Add drop shadows and stroke outlines to text blocks through the Block API.
- [Add a Background](https://img.ly/docs/cesdk/js/create-composition/add-background-375a47.md): Put a background color behind text, with padding on each side and a corner radius.

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Build with a coding agent](https://img.ly/SKILL.md)** - A skill that adds a CE.SDK editor to an app: it interviews the user, picks a starter kit and builds it
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
- **[Free Trial](https://img.ly/pricing.md)** - Start building with CE.SDK
