sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.provider
/
FontsContractCompat
/
FontInfo
Font
Info
open
class
FontInfo
(
source
)
Object represent a font entry in the family returned from
fetchFonts
.
Members
Constructors
Font
Info
Link copied to clipboard
@
RestrictTo
(
value
=
LIBRARY_GROUP_PREFIX
)
constructor
(
@
NonNull
uri
:
Uri
,
@
IntRange
(
from
=
0
)
ttcIndex
:
Int
,
@
IntRange
(
from
=
1
,
to
=
1000
)
weight
:
Int
,
italic
:
Boolean
,
resultCode
:
Int
)
Creates a Font with all the information needed about a provided font.
Functions
get
Result
Code
Link copied to clipboard
open
fun
getResultCode
(
)
:
Int
Returns result code.
get
Ttc
Index
Link copied to clipboard
@
IntRange
(
from
=
0
)
open
fun
getTtcIndex
(
)
:
Int
Returns the index to be used to access this font when accessing a TTC file.
get
Uri
Link copied to clipboard
@
NonNull
open
fun
getUri
(
)
:
Uri
Returns a URI associated to this record.
get
Weight
Link copied to clipboard
@
IntRange
(
from
=
1
,
to
=
1000
)
open
fun
getWeight
(
)
:
Int
Returns the weight value for this font.
is
Italic
Link copied to clipboard
open
fun
isItalic
(
)
:
Boolean
Returns whether this font is italic.