Skip to main content
Language

From App Bundle

PhotoEditor SDK supports adding custom fonts from the app bundle. In this example, we add the font Raleway.

Creating Font objects#

We create a URL pointing to the font's location in the app bundle and pass it to the Font constructor. A Font object is a simple collection of the metadata of a font, the fontName, the displayName and the url for non system fonts. We can also create another system font using only the fontName.

Add fonts to asset catalog#

In order to add the new fonts to our asset catalog, we first add the default items and then append our fonts to the fonts array.