# FontsContractCompat.FontInfo

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Methods](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#)  

# FontsContractCompat.FontInfo

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


class
FontsContractCompat.FontInfo
`  
`

extends Object


``


`

|---|----------------------------------------------------------|
| java.lang.Object                                            ||
| ↳ | android.support.v4.provider.FontsContractCompat.FontInfo |

<br />

*** ** * ** ***

Object represent a font entry in the family returned from[fetchFonts(Context, CancellationSignal, FontRequest)](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat#fetchFonts(android.content.Context, android.os.CancellationSignal, android.support.v4.provider.FontRequest)).

## Summary

|                                                                                                                                    ### Public methods                                                                                                                                     ||
|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                 | ` `[getResultCode](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#getResultCode())`() ` Returns result code.                                                    |
| ` int`                                                                 | ` `[getTtcIndex](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#getTtcIndex())`() ` Returns the index to be used to access this font when accessing a TTC file. |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html) | ` `[getUri](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#getUri())`() ` Returns a URI associated to this record.                                              |
| ` int`                                                                 | ` `[getWeight](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#getWeight())`() ` Returns the weight value for this font.                                         |
| ` boolean`                                                             | ` `[isItalic](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#isItalic())`() ` Returns whether this font is italic.                                              |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public methods

### getResultCode

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getResultCode ()
```

Returns result code.[RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE)

<br />

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

### getTtcIndex

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getTtcIndex ()
```

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

<br />

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

### getUri

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Uri getUri ()
```

Returns a URI associated to this record.

<br />

|                                   Returns                                   ||
|---------------------------------------------------------------------|--------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | <br /> |

### getWeight

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getWeight ()
```

Returns the weight value for this font.

<br />

|                    Returns                    ||
|-------|----------------------------------------|
| `int` | Value is between 1 and 1000 inclusive. |

### isItalic

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isItalic ()
```

Returns whether this font is italic.

<br />

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

-

  ## Classes

  - [DocumentFile](https://developer.android.com/reference/android/support/v4/provider/DocumentFile)
  - [FontRequest](https://developer.android.com/reference/android/support/v4/provider/FontRequest)
  - [FontsContractCompat](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat)
  - [FontsContractCompat.Columns](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns)
  - [FontsContractCompat.FontFamilyResult](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontFamilyResult)
  - [FontsContractCompat.FontInfo](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontInfo)
  - [FontsContractCompat.FontRequestCallback](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.FontRequestCallback)