<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** Replaced with FontFamily.Resolver during the introduction of async fonts, all usages should be replaced. Custom subclasses can be converted into a FontFamily.Resolver by calling createFontFamilyResolver(myFontFamilyResolver, context)

```kotlin
interface ResourceLoader
```

Interface used to load a font resource.

## Functions

<h2 id="load-font">load</h2>

```kotlin
fun load(font: Font): Any
```

Loads resource represented by the [Font](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/Font) object.

#### Parameters

| | |
| --- | --- |
| font | [Font](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/Font) to be loaded |

#### Returns

| | |
| --- | --- |
|  | platform specific typeface |