Added in API level 26
Deprecated in API level 31

FontInfo


open class FontInfo
kotlin.Any
   ↳ android.provider.FontsContract.FontInfo

Object represent a font entry in the family returned from fetchFonts.

Summary

Public methods
open Array<FontVariationAxis!>?

Returns the list of axes associated to this font.

open Int

Returns result code.

open Int

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

open Uri

Returns a URI associated to this record.

open Int

Returns the weight value for this font.

open Boolean

Returns whether this font is italic.

Public methods

getAxes

Added in API level 26
open fun getAxes(): Array<FontVariationAxis!>?

Deprecated: Deprecated in Java.

Returns the list of axes associated to this font.

Return
Array<FontVariationAxis!>? This value may be null.

getResultCode

Added in API level 26
open fun getResultCode(): Int

Deprecated: Deprecated in Java.

Returns result code. FontsContract.Columns#RESULT_CODE

getTtcIndex

Added in API level 26
open fun getTtcIndex(): Int

Deprecated: Deprecated in Java.

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

Return
Int Value is 0 or greater

getUri

Added in API level 26
open fun getUri(): Uri

Deprecated: Deprecated in Java.

Returns a URI associated to this record.

Return
Uri This value cannot be null.

getWeight

Added in API level 26
open fun getWeight(): Int

Deprecated: Deprecated in Java.

Returns the weight value for this font.

Return
Int Value is between 1 and 1000 inclusive

isItalic

Added in API level 26
open fun isItalic(): Boolean

Deprecated: Deprecated in Java.

Returns whether this font is italic.