---
title: "Building text animations for Instagram Stories"
description: "Instagram's 2020 Stories text styles and animations required solving cross-platform font delivery and Unicode-aware rendering."
url: "https://swe.quest/articles/building-text-animations-for-instagram-stories-10ca8ff4e07dc141"
canonical: "https://engineering.fb.com/2022/07/18/developer-tools/building-text-animations-for-instagram-stories/"
source: "Meta Engineering"
published: "2022-07-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["mobile","product-engineering","debugging"]
---

# Building text animations for Instagram Stories

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-07-18, 9 min read, Case study. Original: [https://engineering.fb.com/2022/07/18/developer-tools/building-text-animations-for-instagram-stories/](https://engineering.fb.com/2022/07/18/developer-tools/building-text-animations-for-instagram-stories/)

## Summary

Instagram's 2020 Stories text styles and animations required solving cross-platform font delivery and Unicode-aware rendering. On Android, bundling 4.5 MB of fonts would have cost an estimated 700K installs a month, and Google's Downloadable Fonts lacked some needed fonts, so the team built a generic font repository on Everstore, their Haystack-based blob store. A month-long crash hunt during A/B testing eventually traced to that trusted caching infrastructure failing to clean up files. Character-by-character reveals had to handle ligatures, emoji, RTL text and custom spans, which led the team to drop per-character Canvas#drawText for cached StaticLayouts, while iOS word reveals used NSLinguisticTagger for language-aware tokenization.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- Android text rendering APIs ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))
- iOS UIKit drawing
- Unicode text basics

## Keywords

Instagram Stories, Everstore, Haystack, Downloadable Fonts, StaticLayout, NSLinguisticTagger, BreakIterator

## Related posts

- [Language packs: Meta’s mobile localization solution](https://swe.quest/articles/language-packs-meta-s-mobile-localization-solution-63e607a7c0642326.md): Meta Engineering · 2022-05-09 · Medium · 9 min read · Mobile, Product engineering, System design
  Meta delivers mobile translations as download-on-demand language packs: per-locale binary hash maps keyed by hashed string IDs, holding nested lookup tables that resolve gender and plural variations at runtime through its FBT string API.
- [Steganography at scale: Embedding share URLs in Datadog widget screenshots](https://swe.quest/articles/steganography-at-scale-embedding-share-urls-in-datadog-widget-screenshots-c180eafbb38c64ee.md): Datadog Engineering · 2026-04-21 · Medium · 20 min read · Frontend, Caching, Observability, Algorithms
  Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID.
- [Reducing Android scope-sync overhead in Sentry Flutter](https://swe.quest/articles/reducing-android-scope-sync-overhead-in-sentry-flutter-318db2622363a7d1.md): Sentry · 2026-10-08 · Medium · 4 min read · Performance engineering, Mobile, Concurrency
  Sentry's Flutter SDK cut Android scope-update processing time by 27–30% by removing duplicate normalization and encoding JSON directly to UTF-8 bytes.
- [The Sentry Android SDK is now 20-30% faster!](https://swe.quest/articles/the-sentry-android-sdk-is-now-20-30-faster-c43bd999f6f96999.md): Sentry · 2026-10-20 · Medium · 4 min read · Mobile, Performance engineering, Java & JVM
  Sentry's Android SDK init time dropped 20-30% between versions 8.43.0 and 8.54.0, alongside reduced memory allocation, fixed leaks and up to 10% less background CPU.
- [Lessons From Building Android Widgets](https://swe.quest/articles/lessons-from-building-android-widgets-3b8b116282223e62.md): Shopify Engineering · 2022-09-22 · Medium · 19 min read · Mobile, Caching
  Shopify built its Android analytics widgets natively rather than in React Native, because widgets must be built from RemoteViews, which React Native does not support.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
