Text & Fonts
A picture says more than a thousand words, however sometimes it still takes a few more. The robust text feature of VideoEditor SDK provides all necessary functions for quickly adding text to any picture or creative. The corresponding font library can easily be exchanged, reduced, or expanded.
The tool is implemented in the TextToolPanel
class and backend settings are implemented in the TextLayerSettings
class.
It can be configured using the UiConfigText
class as described in the configuration section.
Every font is represented by an instance of a FontAsset
class. By default, VideoEditor SDK includes all fonts if you include the assets:font-basic
module in your project.
The collection of default FontAsset
s can be obtained using SettingsList.config.getAssetMap(FontAsset::class)
.
The collection of default font items added to the UI can be obtained using SettingsList[UiConfigText::class].fontList
.
NOTE: Text tool requires the
ui:text
module. Refer to our documentation on how to include the module in your project.