# 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)

*** ** * ** ***


```
public final class LayoutElementBuilders.FontStyles
```

<br />

*** ** * ** ***

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

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

## Summary

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[body1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY1()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[body2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY2()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[button](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#button(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BUTTON()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[caption1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION1()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[caption2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION2()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[display1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY1()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[display2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY2()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[display3](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY3()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[title1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE1()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[title2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE2()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyle.Builder` | `[title3](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE3()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`. <br /> |

## Public methods

### 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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [body1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY1()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [body2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#body2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BODY2()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [button](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#button(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_BUTTON()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [caption1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION1()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [caption2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#caption2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_CAPTION2()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [display1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY1()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [display2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY2()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [display3](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#display3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_DISPLAY3()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [title1](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title1(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE1()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [title2](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title2(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE2()` on Material `https://developer.android.com/reference/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)

```
public static @NonNull LayoutElementBuilders.FontStyle.Builder [title3](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontStyles#title3(androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters))(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/wear/protolayout/material/Typography#TYPOGRAPHY_TITLE3()` on Material `https://developer.android.com/reference/androidx/wear/protolayout/material/Text`.

Font style for small title text.