preloadDownloadableFontFamilies

fun preloadDownloadableFontFamilies(context: Context, downloadableFontFamilies: List<OrangeDownloadableFontFamily>, onComplete: (success: Boolean) -> Unit)

Preloads the downloadable font families for the Orange themes. Call this method if either the OrangeFontFamily.latin or OrangeFontFamily.arabic property of the OrangeFontFamily used to create the Orange theme instance is an implementation of OrangeDownloadableFontFamily (OrangeHelveticaNeueLatin.Downloadable or OrangeHelveticaNeueArabic.Downloadable).

Please note that downloading font files is not the preferred way of configuring font families for the Orange themes. See documentation of OrangeTheme for more information.

Parameters

context

The context.

downloadableFontFamilies

The downloadable font families to preload.

onComplete

A callback that is called when the font families are fully loaded.