# FontStyle

# FontStyle

Artifact:[androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/text/FontStyle.kt+class:androidx.glance.text.FontStyle)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

<br />

```
value class FontStyle
```

<br />

*** ** * ** ***

Describes the style of the font:[Normal](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#Normal())\] or[Italic](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#Italic()).

## Summary

|                                                                              ### Public companion functions                                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[FontStyle](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle)`>` | [values](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#values())`()` Returns a list of possible values of[FontStyle](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle). |

|                              ### Public companion properties                               |
|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| [FontStyle](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle) | [Italic](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#Italic()) Use glyphs designed for slanting |
| [FontStyle](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle) | [Normal](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#Normal()) Use the upright glyphs           |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle#toString())`()` |

## Public companion functions

### values

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
fun values(): List<FontStyle>
```

Returns a list of possible values of[FontStyle](https://developer.android.com/reference/kotlin/androidx/glance/text/FontStyle).  

## Public companion properties

### Italic

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
val Italic: FontStyle
```

Use glyphs designed for slanting  

### Normal

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
val Normal: FontStyle
```

Use the upright glyphs  

## Public functions

### toString

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