Understand font and rendering limitations
mainThe animation works by measuring each character in its own cell using the element's exact font. While highly compatible with most fonts, be aware of the following:
- Kerning: Pair kerning (e.g.,
AV) is lost as characters are isolated. - Ligatures: Ligatures (e.g.,
fi,fl) will not form. - Joined Scripts: Scripts like Arabic or Devanagari may render as isolated forms.
- Grapheme Clusters: Uses
Intl.Segmenterwhere available; otherwise falls back to Unicode code points. - Clipping: Very tall display fonts might clip at the roll mask (recommended
line-height: 1.3).