Text boxes, svg images and video mattes in Compose
Give a text clip a transform.size and its lines wrap inside it, with verticalAlign, lineHeight and letterSpacing. Image clips take svg files, and the mask effect takes a video matte.
A text clip now takes a transform.size, the same box a picture or a shape has. Its lines wrap inside the box’s width, long words break, and style.verticalAlign puts the text at the box’s top, middle or bottom. position and anchor place the box the way they place any clip, and style.background fills the whole box. Two more style fields space the type: lineHeight, a multiple of the font size, and letterSpacing, in pixels of the output frame, which may be negative.
The line breaks are the engine’s own. The compiler measures the font file the clip renders in, so a box that wraps to three lines on your screen wraps to three in the video.
- Svg image clips.
"type": "image"accepts an svg URL. It is drawn at the frame’s size before the render, so a logo stays sharp at any scale, andfit,transform.sizeand scale keyframes work as they do on a png. - Video mattes. The
maskeffect’ssrcaccepts a video as well as a png or jpg. Its frames mask the clip frame by frame from the clip’s first frame, so a matte rendered in another tool can wipe, iris or dissolve a layer in. A matte shorter than the clip loops. - What is refused, and why. A
stroke, a split or an exit entrance with a text box or either spacing: the layout that wraps has no text stroke and is not what the motion painter draws. Each is refused with the way around it, rather than rendered without the setting. A timer and subtitles take neither spacing.
Every field is optional. A document that rendered before this change compiles to the same render after it. The field reference lists the new fields under text, image and effects.
