Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/provider/FontsContract.FontInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/FontsContract.FontInfo#inhmethods)

# FontsContract.FontInfo

*** ** * ** ***

` public static class FontsContract.FontInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.FontsContract.FontInfo |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 31.**   

Use the `https://developer.android.com/reference/androidx/core/provider/FontsContractCompat.FontInfo.html` for consistent behavior across all devices

Object represent a font entry in the family returned from `https://developer.android.com/reference/android/provider/FontsContract#fetchFonts(android.content.Context,%20android.os.CancellationSignal,%20android.provider.FontRequest)`.

## Summary

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#getAxes()() ` Returns the list of axes associated to this font. |
| ` int` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#getResultCode()() ` Returns result code. |
| ` int` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#getTtcIndex()() ` Returns the index to be used to access this font when accessing a TTC file. |
| ` https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#getUri()() ` Returns a URI associated to this record. |
| ` int` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#getWeight()() ` Returns the weight value for this font. |
| ` boolean` | ` https://developer.android.com/reference/android/provider/FontsContract.FontInfo#isItalic()() ` Returns whether this font is italic. |

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

### getAxes

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

```
public FontVariationAxis[] getAxes ()
```

Returns the list of axes associated to this font.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis` | This value may be `null`. <br /> |

### getResultCode

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

```
public int getResultCode ()
```

Returns result code. `https://developer.android.com/reference/android/provider/FontsContract.Columns#RESULT_CODE`

<br />

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

### getTtcIndex

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

```
public int getTtcIndex ()
```

Returns the index to be used to access this font when accessing a TTC file.

<br />

| Returns ||
|---|---|
| `int` | Value is 0 or greater <br /> |

### getUri

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

```
public Uri getUri ()
```

Returns a URI associated to this record.

<br />

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

### getWeight

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

```
public int getWeight ()
```

Returns the weight value for this font.

<br />

| Returns ||
|---|---|
| `int` | Value is between 1 and 1000 inclusive <br /> |

### isItalic

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

```
public boolean isItalic ()
```

Returns whether this font is italic.

<br />

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