---
title: "FontStyle"
description: "Defines whether the font is [Italic] or [Normal]."
type: "class"
---

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


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

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


```kotlin
value class FontStyle
@Deprecated(
    "Please use FontStyle.Normal or FontStyle.Italic",
    replaceWith = ReplaceWith("FontStyle."),
)
constructor(val value: Int)
```


Defines whether the font is `Italic` or `Normal`.


## Companion Object

#### Properties

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


```kotlin
val Normal = FontStyle(0)
```


Use the upright glyphs



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


```kotlin
val Italic = FontStyle(1)
```


Use glyphs designed for slanting



#### Methods

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


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


Returns a list of possible values of `FontStyle`.





