In addition to its common properties, the text element has several properties of its own.
Name | Default | Description |
---|---|---|
width | null | When set to null, the width will automatically adjust to fit the text. |
height | null | When set to null, the height will automatically adjust to fit the text. |
fill_color | #000000 | The default fill color is #000000 (black). |
x_alignment | 0% | The horizontal text alignment. A value of 0% means it is left aligned. A value of 100% means it is right aligned. |
y_alignment | 0% | The vertical text alignment. A value of 0% means it is aligned at the top. A value of 100% means it is aligned at the bottom. |
text | (Empty string) | The text displayed in the element. |
font_family | Aileron | The font family used to render the text. You can define your own custom fonts at the top of the template. |
font_weight | 400 | The font's weight. |
font_style | normal | The font's style (e.g., italics). |
font_size | null | Use this property to set a fixed font size, or keep it at null if you want the font size to be automatically sized based on the available space. |
font_size_minimum | 1 vmin | Use this property to specify the minimum font size when the text is auto-sized. |
font_size_maximum | 100 vmin | Use this property to specify the maximum font size when the text is auto-sized. |
letter_spacing | 0% | The text's letter spacing as a percentage of the font size. |
line_height | 115% | The text's line height as a percentage of the font size. |
text_wrap | true | If this is set to false, text will not wrap to the next line when there isn't enough space available in the element. |
text_clip | false | Set this to true to clip off text that overflows the element's borders. An ellipsis (...) will be displayed if the text is clipped off. If you do not want to display an ellipsis, use the common property clip instead. |
text_transform | none | A transformation applied to the text content. It can be set to none, capitalize, uppercase, or lowercase. |
background_color | null | The text background color. |
background_x_padding | 25% | Horizontal padding added to the text background as a percentage of the font size. |
background_y_padding | 25% | Vertical padding added to the text background as a percentage of the font size. |
background_border_radius | 0% | Border radius of the text background. |
background_align_threshold | 20% | You can use this threshold to align the text background with other text lines. It is a percentage of the element's width. A value of 0% disables alignment. |
transcript_source | null | To use auto-transcription for this text element, set it to the ID of the video element for which subtitles are to be generated. |
transcript_effect | color | The transcript effect: color, karaoke, highlight, fade, bounce, slide, or enlarge. |
transcript_split | word | The transcript split: none, word, or line. |
transcript_placement | static | The transcript placement: static, animate, or align. |
transcript_maximum_length | null | The maximum number of characters shown simultaneously. |
transcript_color | #e74c3c | The color applied to the currently spoken text (word or line). Use this in conjunction with "transcript_split". |
Check out the template editor's documentation on the text element as well.