Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#inhmethods)

# TextAppearanceInfo.Builder

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/inputmethod/TextAppearanceInfo.Builder "View this page in Kotlin") \|Java


`
public
static
final

class
TextAppearanceInfo.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.inputmethod.TextAppearanceInfo.Builder |

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#Builder()() ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#build()() ` Returns `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo` using parameters in this `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder`. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setAllCaps(boolean)(boolean allCaps) ` Set whether the transformation method applied to the current editor is set to all caps. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setElegantTextHeight(boolean)(boolean elegantTextHeight) ` Set the elegant height metrics flag. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setFallbackLineSpacing(boolean)(boolean fallbackLineSpacing) ` Set whether to expand linespacing based on fallback fonts. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setFontFeatureSettings(java.lang.String)(https://developer.android.com/reference/java/lang/String fontFeatureSettings) ` Set the font feature settings. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setFontVariationSettings(java.lang.String)(https://developer.android.com/reference/java/lang/String fontVariationSettings) ` Set the font variation settings. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setHighlightTextColor(int)(int highlightTextColor) ` Set the color of the text selection highlight. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setHintTextColor(int)(int hintTextColor) ` Set the current color of the hint text. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setLetterSpacing(float)(float letterSpacing) ` Set the text letter-spacing, which determines the spacing between characters. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setLineBreakStyle(int)(int lineBreakStyle) ` Set the line-break strategies for text wrapping. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setLineBreakWordStyle(int)(int lineBreakWordStyle) ` Set the line-break word strategies for text wrapping. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setLinkTextColor(int)(int linkTextColor) ` Set the text color used to paint the links in the editor. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setShadowColor(int)(int shadowColor) ` Set the color of the text shadow. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setShadowDx(float)(float shadowDx) ` Set the horizontal offset (in pixels) of the text shadow. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setShadowDy(float)(float shadowDy) ` Set the vertical offset (in pixels) of the text shadow. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setShadowRadius(float)(float shadowRadius) ` Set the blur radius (in pixels) of the text shadow. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setSystemFontFamilyName(java.lang.String)(https://developer.android.com/reference/java/lang/String systemFontFamilyName) ` Set the system font family name if the `https://developer.android.com/reference/android/graphics/Typeface` of the text is created from a system font family. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextColor(int)(int textColor) ` Set the current text color of the editor. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextFontWeight(int)(int textFontWeight) ` Set the weight of the text. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextLocales(android.os.LocaleList)(https://developer.android.com/reference/android/os/LocaleList textLocales) ` Set the `https://developer.android.com/reference/android/os/LocaleList` of the text. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextScaleX(float)(float textScaleX) ` Set the extent by which text should be stretched horizontally. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextSize(float)(float textSize) ` Set the text size (in pixels) obtained from the current editor. |
| ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder#setTextStyle(int)(int textStyle) ` Set the style (normal, bold, italic, bold\|italic) of the text. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### Builder

```
public Builder ()
```

<br />

<br />

## Public methods

### build

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo build ()
```

Returns `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo` using parameters in this
`https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo` | This value cannot be `null`. <br /> |

### setAllCaps

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setAllCaps (boolean allCaps)
```

Set whether the transformation method applied to the current editor is set to all caps.

<br />

| Parameters ||
|---|---|
| `allCaps` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#setAllCaps(boolean)`
- `https://developer.android.com/reference/android/widget/TextView#setTransformationMethod(android.text.method.TransformationMethod)`

### setElegantTextHeight

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setElegantTextHeight (boolean elegantTextHeight)
```

Set the elegant height metrics flag. This setting selects font variants that
have not been compacted to fit Latin-based vertical metrics, and also increases
top and bottom bounds to provide more space.

<br />

| Parameters ||
|---|---|
| `elegantTextHeight` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#isElegantTextHeight()`

### setFallbackLineSpacing

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setFallbackLineSpacing (boolean fallbackLineSpacing)
```

Set whether to expand linespacing based on fallback fonts.

<br />

| Parameters ||
|---|---|
| `fallbackLineSpacing` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#setFallbackLineSpacing(boolean)`

### setFontFeatureSettings

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setFontFeatureSettings (String fontFeatureSettings)
```

Set the font feature settings.

<br />

| Parameters ||
|---|---|
| `fontFeatureSettings` | `String`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#getFontFeatureSettings()`

### setFontVariationSettings

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setFontVariationSettings (String fontVariationSettings)
```

Set the font variation settings. Set `null` if no variation is specified.

<br />

| Parameters ||
|---|---|
| `fontVariationSettings` | `String`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#getFontVariationSettings()`

### setHighlightTextColor

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setHighlightTextColor (int highlightTextColor)
```

Set the color of the text selection highlight.

<br />

| Parameters ||
|---|---|
| `highlightTextColor` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#getHighlightColor()`

### setHintTextColor

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setHintTextColor (int hintTextColor)
```

Set the current color of the hint text.

<br />

| Parameters ||
|---|---|
| `hintTextColor` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#getCurrentHintTextColor()`

### setLetterSpacing

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setLetterSpacing (float letterSpacing)
```

Set the text letter-spacing, which determines the spacing between characters.
The value is in 'EM' units. Normally, this value is 0.0.

<br />

| Parameters ||
|---|---|
| `letterSpacing` | `float` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

### setLineBreakStyle

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setLineBreakStyle (int lineBreakStyle)
```

Set the line-break strategies for text wrapping.

<br />

| Parameters ||
|---|---|
| `lineBreakStyle` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_NONE` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_LOOSE` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_NORMAL` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_STRICT` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_UNSPECIFIED` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_NO_BREAK` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_STYLE_AUTO` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#setLineBreakStyle(int)`

### setLineBreakWordStyle

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setLineBreakWordStyle (int lineBreakWordStyle)
```

Set the line-break word strategies for text wrapping.

<br />

| Parameters ||
|---|---|
| `lineBreakWordStyle` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_WORD_STYLE_NONE` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_WORD_STYLE_PHRASE` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_WORD_STYLE_UNSPECIFIED` - `https://developer.android.com/reference/android/graphics/text/LineBreakConfig#LINE_BREAK_WORD_STYLE_AUTO` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#setLineBreakWordStyle(int)`

### setLinkTextColor

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setLinkTextColor (int linkTextColor)
```

Set the text color used to paint the links in the editor.

<br />

| Parameters ||
|---|---|
| `linkTextColor` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#getLinkTextColors()`

### setShadowColor

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setShadowColor (int shadowColor)
```

Set the color of the text shadow.

<br />

| Parameters ||
|---|---|
| `shadowColor` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setShadowLayer(float,%20float,%20float,%20int)`

### setShadowDx

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setShadowDx (float shadowDx)
```

Set the horizontal offset (in pixels) of the text shadow.

<br />

| Parameters ||
|---|---|
| `shadowDx` | `float`: The units of this value are pixels. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setShadowLayer(float,%20float,%20float,%20int)`

### setShadowDy

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setShadowDy (float shadowDy)
```

Set the vertical offset (in pixels) of the text shadow.

<br />

| Parameters ||
|---|---|
| `shadowDy` | `float`: The units of this value are pixels. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setShadowLayer(float,%20float,%20float,%20int)`

### setShadowRadius

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setShadowRadius (float shadowRadius)
```

Set the blur radius (in pixels) of the text shadow.

<br />

| Parameters ||
|---|---|
| `shadowRadius` | `float`: The units of this value are pixels. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setShadowLayer(float,%20float,%20float,%20int)`

### setSystemFontFamilyName

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setSystemFontFamilyName (String systemFontFamilyName)
```

Set the system font family name if the `https://developer.android.com/reference/android/graphics/Typeface` of the text is created from a
system font family.

<br />

| Parameters ||
|---|---|
| `systemFontFamilyName` | `String`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Typeface#getSystemFontFamilyName()`

### setTextColor

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextColor (int textColor)
```

Set the current text color of the editor.

<br />

| Parameters ||
|---|---|
| `textColor` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/widget/TextView#getCurrentTextColor()`

### setTextFontWeight

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextFontWeight (int textFontWeight)
```

Set the weight of the text.

<br />

| Parameters ||
|---|---|
| `textFontWeight` | `int`: Value is between `https://developer.android.com/reference/android/graphics/fonts/FontStyle#FONT_WEIGHT_UNSPECIFIED` and `https://developer.android.com/reference/android/graphics/fonts/FontStyle#FONT_WEIGHT_MAX` inclusive <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

### setTextLocales

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextLocales (LocaleList textLocales)
```

Set the `https://developer.android.com/reference/android/os/LocaleList` of the text.

<br />

| Parameters ||
|---|---|
| `textLocales` | `LocaleList`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

### setTextScaleX

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextScaleX (float textScaleX)
```

Set the extent by which text should be stretched horizontally.

<br />

| Parameters ||
|---|---|
| `textScaleX` | `float` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

### setTextSize

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextSize (float textSize)
```

Set the text size (in pixels) obtained from the current editor.

<br />

| Parameters ||
|---|---|
| `textSize` | `float`: The units of this value are pixels. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

### setTextStyle

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextAppearanceInfo.Builder setTextStyle (int textStyle)
```

Set the style (normal, bold, italic, bold\|italic) of the text.

<br />

| Parameters ||
|---|---|
| `textStyle` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/graphics/Typeface#NORMAL` - `https://developer.android.com/reference/android/graphics/Typeface#BOLD` - `https://developer.android.com/reference/android/graphics/Typeface#ITALIC` - `https://developer.android.com/reference/android/graphics/Typeface#BOLD_ITALIC` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Typeface`