# LayoutElementBuilders.FontStyles

# LayoutElementBuilders.FontStyles

Artifact:[androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders.FontStyles)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles "View this page in Java")

<br />

```
class LayoutElementBuilders.FontStyles
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
|
| Use[androidx.wear.protolayout.material.Typography](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography)on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text)(highly recommended) or make your own[FontStyle](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle).

Font styles, currently set up to match Wear's font styling.

## Summary

|                                                                           ### Public functions                                                                            |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[body1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_BODY1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />             |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[body2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_BODY2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />             |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[button](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#button(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_BUTTON](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BUTTON())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />         |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[caption1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_CAPTION1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br /> |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[caption2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_CAPTION2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br /> |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[display1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_DISPLAY1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br /> |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[display2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_DISPLAY2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br /> |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[display3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_DISPLAY3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY3())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br /> |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[title1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_TITLE1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />         |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[title2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_TITLE2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />         |
| `java-static `[LayoutElementBuilders.FontStyle.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder) | ~~[title3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))~~`(deviceParameters: `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)`)` **This function is deprecated.** Use[TYPOGRAPHY_TITLE3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE3())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text). <br />         |

## Public functions

### body1

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [body1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_BODY1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for large body text.  

### body2

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [body2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_BODY2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for medium body text.  

### button

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [button](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#button(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_BUTTON](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BUTTON())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for button text.  

### caption1

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [caption1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_CAPTION1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for large caption text.  

### caption2

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [caption2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_CAPTION2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for medium caption text.  

### display1

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [display1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_DISPLAY1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for large display text.  

### display2

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [display2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_DISPLAY2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for medium display text.  

### display3

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [display3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_DISPLAY3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY3())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for small display text.  

### title1

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [title1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_TITLE1](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE1())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for large title text.  

### title2

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [title2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_TITLE2](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE2())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for medium title text.  

### title3

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  
Deprecated in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
java-static fun [title3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.FontStyle.Builder
```
| **This function is deprecated.**   
|
| Use[TYPOGRAPHY_TITLE3](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE3())on Material[androidx.wear.protolayout.material.Text](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Text).

Font style for small title text.