# GenericFontFamily

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/font/FontFamily.kt+class:androidx.compose.ui.text.font.GenericFontFamily) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class GenericFontFamily : SystemFontFamily
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.compose.ui.text.font.FontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily) |||
|   | ↳ | [androidx.compose.ui.text.font.SystemFontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/SystemFontFamily) ||
|   |   | ↳ | [androidx.compose.ui.text.font.GenericFontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/GenericFontFamily) |

*** ** * ** ***

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.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily#SansSerif()` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily#Serif()` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily#Monospace()` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily#Cursive()` |   |

## Summary

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/GenericFontFamily#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/GenericFontFamily#name()` a generic font family name, e.g. "serif", "sans-serif" | Cmn |

### Inherited properties

From [androidx.compose.ui.text.font.FontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily#canLoadSynchronously()`

**This property is deprecated.** Unused property that has no meaning.
Cmn

## Public functions

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### name

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val name: String
```

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