# DeviceFontFamilyName

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/DeviceFontFamilyNameFont.android.kt+class:androidx.compose.ui.text.font.DeviceFontFamilyName) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.2.0) Common/AllAndroid/JVM
- android

  ```
  value class DeviceFontFamilyName
  ```

*** ** * ** ***

An Android system installed font family name as used by `https://developer.android.com/reference/android/graphics/Typeface.html#create(android.graphics.Typeface, int)`.

See `/system/etc/fonts.xml` and `/product/etc/fonts_customization.xml` on a device.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if name is empty |

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/Typeface.html` |   |

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/DeviceFontFamilyName#DeviceFontFamilyName(kotlin.String)(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/DeviceFontFamilyName#name()` System fontFamilyName as passed to `https://developer.android.com/reference/android/graphics/Typeface.html#create(android.graphics.Typeface, int)` | android |

## Public constructors

### DeviceFontFamilyName

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

```
DeviceFontFamilyName(name: String)
```

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | System fontFamilyName as passed to `https://developer.android.com/reference/android/graphics/Typeface.html#create(android.graphics.Typeface, int)` |

## Public properties

### name

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

```
val name: String
```

System fontFamilyName as passed to `https://developer.android.com/reference/android/graphics/Typeface.html#create(android.graphics.Typeface, int)`