Language
From Assets
PhotoEditor SDK supports adding custom fonts from local assets. In this example, we add the font Raleway.
Creating FontAsset
#
FontAsset
#We create a FontAsset
here with a unique identifier and the path to the font file relative to the assets
directory.
Add font to AssetConfig
#
AssetConfig
#To use the font, it must first be available in the SDK's backend. This is done by adding the FontAsset
created above to the AssetConfig
.
Configure UiConfigText
#
UiConfigText
#Here, we configure UiConfigText
and add a custom FontItem
to the fontList
.