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.
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,fontSizeandfontWeight, in place offont,sizeandweight. - Shapes. The kind is
"rectangle", in place of"rect", on a shape clip and on theblurRegioneffect. - Shadows. A shape’s shadow is offset by
offsetXandoffsetY, the same as a text shadow and thedropShadoweffect. It also takesopacity. - 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.
