shpapps

Lab · Tool

Type Ladder

Climb every text size your users can pick, from iOS's xSmall to AX5 and Android's 85% to 200%, and watch the same screen hold up or break. Each platform grows each style on its own curve; see it beside a single multiplier, a clamp or fixed sizes, spot what truncates and clips, then copy the fixes for SwiftUI, UIKit, Compose and Flutter.

  • Apple's Dynamic Type table
  • Android 14's nonlinear curve
  • Flutter's one factor on iOS
  • Truncation and clipping found for you
  • A Flutter TextScaler that follows Apple's table
Platform
Compare native with
Layout

The same screen, both ways

The screens are drawn at their real size in points (a 393 pt wide iPhone screen, a 412 dp wide Android one) and shrunk to fit, in your browser's own system font, so line breaks are close to a phone's, not identical. Scroll inside a screen to see the rest of it.

Every style, every step

At this size

StyleDefaultNativeCompared

Copy the fixes

Field notes

iOS gives every style its own curve

Apple's table grows small text much more than big text. From the default Large size to AX5, Body goes from 17 to 53 pt (3.1×) and Caption 2 from 11 to 40 pt (3.6×), while Large Title goes from 34 to only 60 pt (1.8×). The five AX sizes only appear once people turn on Larger Accessibility Sizes, which is exactly why they are easy to forget in testing.

On Android 14, sp is no longer a multiplier

Font size goes up to 200%, and from 1.05× up the system maps sp through lookup tables instead of multiplying. At 200%, 14 sp becomes 26 but 30 sp becomes 38, and a 57 sp display style only about 62. Android's own guidance follows from it: 4 sp + 20 sp might not equal 24 sp, so keep sp for text and line height and convert with TypedValue.applyDimension(), never with fontScale by hand.

Flutter: one factor on iOS, the platform's curve on Android

On iOS the engine turns the content size category into a single factor, Body's size over 17, and every font size is multiplied by it. At AX5 that is 53 ÷ 17 = 3.12×, so a 34 pt title becomes 106 pt where a native app shows 60. On Android 14 and later, Flutter asks the platform to scale each size, so it follows the nonlinear curve. Our own apps are Flutter, which is why we built this.

Fix the layout, cap the chrome, keep the text

Most breakage comes from fixed heights, single-line labels and rows that never change direction. Let text wrap, give containers minimum heights instead of fixed ones, and stack a row once the text gets big. Cap only compact chrome such as a tab bar. Clamping the whole app looks tidy, but it quietly undoes the setting: clamped at 2×, Body stops at 34 pt for someone who asked for 53.

Sources