# FontsContractCompat.Columns

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:[Constants](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#constants)\|[Inherited Constants](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#inhconstants)\|[Ctors](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#)  

# FontsContractCompat.Columns

| 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
final

class
FontsContractCompat.Columns
`  
`

extends Object


``


implements

`[BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns.html)`


`

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

<br />

*** ** * ** ***

Defines the constants used in a response from a Font Provider. The cursor returned from the query should have the ID column populated with the content uri ID for the resulting font. This should point to a real file or shared memory, as the client will mmap the given file descriptor. Pipes, sockets and other non-mmap-able file descriptors will fail to load in the client application.

## Summary

|                                                                                                                         ### Constants                                                                                                                         ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | [FILE_ID](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#FILE_ID) Constant used to request data from a font provider.                                                                              |
| `String` | [ITALIC](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#ITALIC) Constant used to request data from a font provider.                                                                                |
| `String` | [RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE) Constant used to request data from a font provider.                                                                      |
| `int`    | [RESULT_CODE_FONT_NOT_FOUND](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_FONT_NOT_FOUND) Constant used to represent a result was not found.                                         |
| `int`    | [RESULT_CODE_FONT_UNAVAILABLE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_FONT_UNAVAILABLE) Constant used to represent a result was found, but cannot be provided at this moment.  |
| `int`    | [RESULT_CODE_MALFORMED_QUERY](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_MALFORMED_QUERY) Constant used to represent that the query was not in a supported format by the provider. |
| `int`    | [RESULT_CODE_OK](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_OK) Constant used to represent a result was retrieved successfully.                                                    |
| `String` | [TTC_INDEX](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#TTC_INDEX) Constant used to request data from a font provider.                                                                          |
| `String` | [VARIATION_SETTINGS](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#VARIATION_SETTINGS) Constant used to request data from a font provider.                                                        |
| `String` | [WEIGHT](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#WEIGHT) Constant used to request data from a font provider.                                                                                |

|                                                                                                                                                      ### Inherited constants                                                                                                                                                      |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#)From interface` android.provider.BaseColumns ` |----------|-----------------| | `String` | `_COUNT` <br /> | | `String` | `_ID` <br />    | |

|                                                                         ### Public constructors                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[FontsContractCompat.Columns](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#FontsContractCompat.Columns())`() ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#)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() `                    | ||

## Constants

### FILE_ID

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

```
String FILE_ID
```

Constant used to request data from a font provider. The cursor returned from the query may populate this column with a long for the font file ID. The client will request a file descriptor to "file/FILE_ID" with this ID immediately under the top-level content URI. If not present, the client will request a file descriptor to the top-level URI with the given base font ID. Note that several results may return the same file ID, e.g. for TTC files with different indices.

<br />

Constant Value: "file_id"  

### ITALIC

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

```
String ITALIC
```

Constant used to request data from a font provider. The cursor returned from the query should have this column populated with the int italic for the resulting font. This should be 0 for regular style and 1 for italic.

<br />

Constant Value: "font_italic"  

### RESULT_CODE

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

```
String RESULT_CODE
```

Constant used to request data from a font provider. The cursor returned from the query should have this column populated to indicate the result status of the query. This will be checked before any other data in the cursor. Possible values are[RESULT_CODE_OK](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_OK),[RESULT_CODE_FONT_NOT_FOUND](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_FONT_NOT_FOUND),[RESULT_CODE_MALFORMED_QUERY](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_MALFORMED_QUERY)and[RESULT_CODE_FONT_UNAVAILABLE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_FONT_UNAVAILABLE). If not present,[RESULT_CODE_OK](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE_OK)will be assumed.

<br />

Constant Value: "result_code"  

### RESULT_CODE_FONT_NOT_FOUND

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

```
int RESULT_CODE_FONT_NOT_FOUND
```

Constant used to represent a result was not found. See[RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE).

<br />

Constant Value: 1 (0x00000001)  

### RESULT_CODE_FONT_UNAVAILABLE

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

```
int RESULT_CODE_FONT_UNAVAILABLE
```

Constant used to represent a result was found, but cannot be provided at this moment. Use this to indicate, for example, that a font needs to be fetched from the network. See[RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE).

<br />

Constant Value: 2 (0x00000002)  

### RESULT_CODE_MALFORMED_QUERY

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

```
int RESULT_CODE_MALFORMED_QUERY
```

Constant used to represent that the query was not in a supported format by the provider. See[RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE).

<br />

Constant Value: 3 (0x00000003)  

### RESULT_CODE_OK

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

```
int RESULT_CODE_OK
```

Constant used to represent a result was retrieved successfully. The given fonts will be attempted to retrieve immediately via[openFile(Uri, String)](https://developer.android.com/reference/android/content/ContentProvider.html#openFile(android.net.Uri, java.lang.String)). See[RESULT_CODE](https://developer.android.com/reference/android/support/v4/provider/FontsContractCompat.Columns#RESULT_CODE).

<br />

Constant Value: 0 (0x00000000)  

### TTC_INDEX

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

```
String TTC_INDEX
```

Constant used to request data from a font provider. The cursor returned from the query should have this column populated with an int for the ttc index for the resulting font.

<br />

Constant Value: "font_ttc_index"  

### VARIATION_SETTINGS

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

```
String VARIATION_SETTINGS
```

Constant used to request data from a font provider. The cursor returned from the query may populate this column with the font variation settings String information for the font.

<br />

Constant Value: "font_variation_settings"  

### WEIGHT

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

```
String WEIGHT
```

Constant used to request data from a font provider. The cursor returned from the query should have this column populated with the int weight for the resulting font. This value should be between 100 and 900. The most common values are 400 for regular weight and 700 for bold weight.

<br />

Constant Value: "font_weight"

## Public constructors

### FontsContractCompat.Columns

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

```
FontsContractCompat.Columns ()
```

<br />

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