CTRL + K

Text element

In addition to its common properties, the text element has several properties of its own.

NameDefaultDescription
widthnullWhen set to null, the width will automatically adjust to fit the text.
heightnullWhen set to null, the height will automatically adjust to fit the text.
fill_color#000000The default fill color is #000000 (black).
x_alignment0%The horizontal text alignment. A value of 0% means it is left aligned. A value of 100% means it is right aligned.
y_alignment0%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_familyAileronThe font family used to render the text. You can define your own custom fonts at the top of the template.
font_weight400The font's weight.
font_stylenormalThe font's style (e.g., italics).
font_sizenullUse 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_minimum1 vminUse this property to specify the minimum font size when the text is auto-sized.
font_size_maximum100 vminUse this property to specify the maximum font size when the text is auto-sized.
letter_spacing0%The text's letter spacing as a percentage of the font size.
line_height115%The text's line height as a percentage of the font size.
text_wraptrueIf this is set to false, text will not wrap to the next line when there isn't enough space available in the element.
text_clipfalseSet 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_transformnoneA transformation applied to the text content. It can be set to none, capitalize, uppercase, or lowercase.
background_colornullThe text background color.
background_x_padding25%Horizontal padding added to the text background as a percentage of the font size.
background_y_padding25%Vertical padding added to the text background as a percentage of the font size.
background_border_radius0%Border radius of the text background.
background_align_threshold20%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_sourcenullTo use auto-transcription for this text element, set it to the ID of the video element for which subtitles are to be generated.
transcript_effectcolorThe transcript effect: color, karaoke, highlight, fade, bounce, slide, or enlarge.
transcript_splitwordThe transcript split: none, word, or line.
transcript_placementstaticThe transcript placement: static, animate, or align.
transcript_maximum_lengthnullThe maximum number of characters shown simultaneously.
transcript_color#e74c3cThe 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.

Previous page
Common properties
Next page
Image element