Changelog
Improved

Compose text takes CSS font names

Text styles take fontFamily, fontSize and fontWeight, a shape is a rectangle, and every shadow is offset by offsetX and offsetY. The old names keep working.

API SDK

A compose timeline now uses the names people and models write without opening the docs. We asked two models to write a timeline blind, and both reached for fontSize where compose said size. Both also wrote "rectangle" and offset a shadow with offsetX and offsetY.

  • Text, timer and subtitles styles take fontFamily, fontSize and fontWeight, in place of font, size and weight.
  • Shapes. The kind is "rectangle", in place of "rect", on a shape clip and on the blurRegion effect.
  • Shadows. A shape’s shadow is offset by offsetX and offsetY, the same as a text shadow and the dropShadow effect. It also takes opacity.
  • Looks. The look is "grayscale", the spelling CSS uses.

Nothing you send today breaks. A timeline that uses the old names is upgraded before it renders, and it renders the same frames. The field reference and the SDK types use the new names, and so does the text box that shipped alongside them.

Share