---
title: "FontFamily"
description: "The primary typography interface for Compose applications."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

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


```kotlin
sealed class FontFamily(canLoadSynchronously: Boolean)
```


The primary typography interface for Compose applications.


## Properties

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


> **Deprecated** Unused property that has no meaning. Do not use.

```kotlin
val canLoadSynchronously = canLoadSynchronously
```


## Companion Object

#### Properties

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


```kotlin
val Default: SystemFontFamily
```


The platform default font.



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


```kotlin
val SansSerif = GenericFontFamily("sans-serif", "FontFamily.SansSerif")
```


Font family with low contrast and plain stroke endings.


See `CSS sans-serif`(https://www.w3.org/TR/css-fonts-3/#sans-serif)



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


```kotlin
val Serif = GenericFontFamily("serif", "FontFamily.Serif")
```


The formal text style for scripts.


See `CSS serif`(https://www.w3.org/TR/css-fonts-3/#serif)



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


```kotlin
val Monospace = GenericFontFamily("monospace", "FontFamily.Monospace")
```


Font family where glyphs have the same fixed width.


See `CSS monospace`(https://www.w3.org/TR/css-fonts-3/#monospace)



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


```kotlin
val Cursive = GenericFontFamily("cursive", "FontFamily.Cursive")
```


Cursive, hand-written like font family.

If the device doesn't support this font family, the system will fallback to the default
font.


See `CSS cursive`(https://www.w3.org/TR/css-fonts-3/#cursive)





