Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#nestedclasses) \| [Inherited Constants](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#lfields) \| [Methods](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#inhmethods)

# TextAppearanceInfo

*** ** * ** ***

` public final class TextAppearanceInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

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

<br />

*** ** * ** ***

Information about text appearance in an editor, passed through `https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo` for use by `https://developer.android.com/reference/android/inputmethodservice/InputMethodService`.
**See also:**

- `https://developer.android.com/reference/android/widget/TextView`
- `https://developer.android.com/reference/android/graphics/Paint`
- `https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder#setTextAppearanceInfo(android.view.inputmethod.TextAppearanceInfo)`
- `https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo#getTextAppearanceInfo()`

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo.Builder` Builder for `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo`. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo>` | `https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#CREATOR` <br /> |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getFontFeatureSettings()() ` Returns the font feature settings. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getFontVariationSettings()() ` Returns the font variation settings. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getHighlightTextColor()() ` Returns the color of the text selection highlight. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getHintTextColor()() ` Returns the current color of the hint text. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getLetterSpacing()() ` Returns the text letter-spacing, which determines the spacing between characters. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getLineBreakStyle()() ` Returns the line-break strategies for text wrapping. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getLineBreakWordStyle()() ` Returns the line-break word strategies for text wrapping. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getLinkTextColor()() ` Returns the text color used to paint the links in the editor. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getShadowColor()() ` Returns the color of the text shadow. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getShadowDx()() ` Returns the horizontal offset (in pixels) of the text shadow. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getShadowDy()() ` Returns the vertical offset (in pixels) of the text shadow. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getShadowRadius()() ` Returns the blur radius (in pixels) of the text shadow. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getSystemFontFamilyName()() ` Returns the font family name if the `https://developer.android.com/reference/android/graphics/Typeface` of the text is created from a system font family. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextColor()() ` Returns the current text color of the editor. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextFontWeight()() ` Returns the weight of the text, or `FontStyle#FONT_WEIGHT_UNSPECIFIED` when no `https://developer.android.com/reference/android/graphics/Typeface` is specified. |
| ` https://developer.android.com/reference/android/os/LocaleList` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextLocales()() ` Returns the `https://developer.android.com/reference/android/os/LocaleList` of the text. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextScaleX()() ` Returns the extent by which text should be stretched horizontally. |
| ` float` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextSize()() ` Returns the text size (in pixels) for current editor. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#getTextStyle()() ` Returns the style (normal, bold, italic, bold\|italic) of the text. |
| ` int` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#hashCode()() ` Returns a hash code value for the object. |
| ` boolean` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#isAllCaps()() ` Returns whether the transformation method applied to the current editor is set to all caps. |
| ` boolean` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#isElegantTextHeight()() ` Returns `true` if the elegant height metrics flag is set. |
| ` boolean` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#isFallbackLineSpacing()() ` Returns whether to expand linespacing based on fallback fonts. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/view/inputmethod/TextAppearanceInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

### 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*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Fields

### CREATOR

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

```
public static final Creator<TextAppearanceInfo> CREATOR
```

<br />

<br />

## Public methods

### describeContents

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

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

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

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.

The `equals` method implements an equivalence relation on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.

An equivalence relation partitions the elements it operates on into *equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: the reference object with which to compare. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getFontFeatureSettings

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

```
public String getFontFeatureSettings ()
```

Returns the font feature settings. Returns null if not specified.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

**See also:**

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

### getFontVariationSettings

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

```
public String getFontVariationSettings ()
```

Returns the font variation settings. Returns null if no variation is specified.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

**See also:**

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

### getHighlightTextColor

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

```
public int getHighlightTextColor ()
```

Returns the color of the text selection highlight.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

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

### getHintTextColor

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

```
public int getHintTextColor ()
```

Returns the current color of the hint text.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

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

### getLetterSpacing

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

```
public float getLetterSpacing ()
```

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

<br />

| Returns ||
|---|---|
| `float` | <br /> |

### getLineBreakStyle

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

```
public int getLineBreakStyle ()
```

Returns the line-break strategies for text wrapping.

<br />

| Returns ||
|---|---|
| `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` |

**See also:**

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

### getLineBreakWordStyle

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

```
public int getLineBreakWordStyle ()
```

Returns the line-break word strategies for text wrapping.

<br />

| Returns ||
|---|---|
| `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` |

**See also:**

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

### getLinkTextColor

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

```
public int getLinkTextColor ()
```

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

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

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

### getShadowColor

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

```
public int getShadowColor ()
```

Returns the color of the text shadow.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

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

### getShadowDx

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

```
public float getShadowDx ()
```

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

The units of this value are pixels.

<br />

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

**See also:**

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

### getShadowDy

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

```
public float getShadowDy ()
```

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

The units of this value are pixels.

<br />

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

**See also:**

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

### getShadowRadius

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

```
public float getShadowRadius ()
```

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

The units of this value are pixels.

<br />

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

**See also:**

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

### getSystemFontFamilyName

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

```
public String getSystemFontFamilyName ()
```

Returns the font family name if the `https://developer.android.com/reference/android/graphics/Typeface` of the text is created from a system font family. Returns null if no `https://developer.android.com/reference/android/graphics/Typeface` is specified, or it is not created from a system font family.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

**See also:**

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

### getTextColor

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

```
public int getTextColor ()
```

Returns the current text color of the editor.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

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

### getTextFontWeight

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

```
public int getTextFontWeight ()
```

Returns the weight of the text, or `FontStyle#FONT_WEIGHT_UNSPECIFIED` when no `https://developer.android.com/reference/android/graphics/Typeface` is specified.

<br />

| Returns ||
|---|---|
| `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 /> |

### getTextLocales

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

```
public LocaleList getTextLocales ()
```

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

<br />

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

### getTextScaleX

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

```
public float getTextScaleX ()
```

Returns the extent by which text should be stretched horizontally. Returns 1.0 if not specified.

<br />

| Returns ||
|---|---|
| `float` | <br /> |

### getTextSize

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

```
public float getTextSize ()
```

Returns the text size (in pixels) for current editor.   

The units of this value are pixels.

<br />

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

### getTextStyle

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

```
public int getTextStyle ()
```

Returns the style (normal, bold, italic, bold\|italic) of the text. Returns `https://developer.android.com/reference/android/graphics/Typeface#NORMAL` when no `https://developer.android.com/reference/android/graphics/Typeface` is specified.

<br />

| Returns ||
|---|---|
| `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` |

**See also:**

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

### hashCode

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

```
public int hashCode ()
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `https://developer.android.com/reference/java/util/HashMap`.

The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### isAllCaps

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

```
public boolean isAllCaps ()
```

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

<br />

| Returns ||
|---|---|
| `boolean` | <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)`

### isElegantTextHeight

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

```
public boolean isElegantTextHeight ()
```

Returns `true` if the elegant height metrics flag is set. 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 />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

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

### isFallbackLineSpacing

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

```
public boolean isFallbackLineSpacing ()
```

Returns whether to expand linespacing based on fallback fonts.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

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

### toString

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

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

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

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |