---
title: "FontFamily"
description: "Describes the family of the font. Defaults are provided, but it is also possible to supply a
custom family. If this is found on the system it will be used, otherwise it will fallback to a
system default."
type: "class"
---

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


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

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public class FontFamily(public val family: String)
```


Describes the family of the font. Defaults are provided, but it is also possible to supply a
custom family. If this is found on the system it will be used, otherwise it will fallback to a
system default.


## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Serif: FontFamily
```


The formal text style for scripts.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val SansSerif: FontFamily
```


Font family with low contrast and plain stroke endings.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Monospace: FontFamily
```


Font family where glyphs have the same fixed width.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Cursive: FontFamily
```


Cursive, hand-written like font family.





