FontsContractCompat.FontInfo
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 |
getUri()Returns a URI associated to this record. |
@IntRange(from = 1, to = 1000) Int |
Returns the weight value for this font. |
Boolean |
isItalic()Returns whether this font is italic. |
Public functions
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.