FontsContractCompat.FontInfo

Added in 1.1.0

class FontsContractCompat.FontInfo


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

Summary

Public functions

Int

Returns result code.

@IntRange(from = 0) Int

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

Uri

Returns a URI associated to this record.

@IntRange(from = 1, to = 1000) Int

Returns the weight value for this font.

Boolean

Returns whether this font is italic.

Public functions

getResultCode

Added in 1.1.0
fun getResultCode(): Int

Returns result code. RESULT_CODE

getTtcIndex

Added in 1.1.0
fun getTtcIndex(): @IntRange(from = 0) Int

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

getUri

Added in 1.1.0
fun getUri(): Uri

Returns a URI associated to this record.

getWeight

Added in 1.1.0
fun getWeight(): @IntRange(from = 1, to = 1000) Int

Returns the weight value for this font.

isItalic

Added in 1.1.0
fun isItalic(): Boolean

Returns whether this font is italic.