---
title: "GenericFontFamily"
description: "Defines a font family with a generic font family name.

If the platform cannot find the passed generic font family, use the platform default one."
type: "class"
---

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


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

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


```kotlin
class GenericFontFamily internal constructor(val name: String, private val fontFamilyName: String) :
    SystemFontFamily()
```


Defines a font family with a generic font family name.

If the platform cannot find the passed generic font family, use the platform default one.

#### Parameters

| | |
| --- | --- |
| name | a generic font family name, e.g. "serif", "sans-serif" |




