FontsContractCompat.FontInfo

Added in 1.1.0

public class FontsContractCompat.FontInfo


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

Summary

Public methods

int

Returns result code.

@IntRange(from = 0) int

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

@NonNull 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 methods

getResultCode

Added in 1.1.0
public int getResultCode()

Returns result code. RESULT_CODE

getTtcIndex

Added in 1.1.0
public @IntRange(from = 0) int getTtcIndex()

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

getUri

Added in 1.1.0
public @NonNull Uri getUri()

Returns a URI associated to this record.

getWeight

Added in 1.1.0
public @IntRange(from = 1, to = 1000) int getWeight()

Returns the weight value for this font.

isItalic

Added in 1.1.0
public boolean isItalic()

Returns whether this font is italic.