Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

FontInfo

open class FontInfo
kotlin.Any
   ↳ androidx.core.provider.FontsContractCompat.FontInfo

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

Summary

Public methods

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

getResultCode

open fun getResultCode(): Int

Returns result code. FontsContractCompat.Columns#RESULT_CODE

getTtcIndex

open fun getTtcIndex(): Int

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

getUri

@NonNull open fun getUri(): Uri

Returns a URI associated to this record.

getWeight

open fun getWeight(): Int

Returns the weight value for this font.

isItalic

open fun isItalic(): Boolean

Returns whether this font is italic.