FontInfo

constructor(@NonNull uri: Uri, @IntRange(from = 0) ttcIndex: Int, @IntRange(from = 1, to = 1000) weight: Int, italic: Boolean, resultCode: Int)(source)

Deprecated

Not being used by any cross library, and should not be used, internal implementation detail.

Creates a Font with all the information needed about a provided font.

Parameters

uri

A URI associated to the font file.

ttcIndex

If providing a TTC_INDEX file, the index to point to. Otherwise, 0.

weight

An integer that indicates the font weight.

italic

A boolean that indicates the font is italic style or not.

resultCode

A boolean that indicates the font contents is ready.