Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

FontsContractCompat.FontInfo

public static class FontsContractCompat.FontInfo
extends Object

java.lang.Object
   ↳ androidx.core.provider.FontsContractCompat.FontInfo


Object represent a font entry in the family returned from FontsContractCompat.fetchFonts(Context, CancellationSignal, FontRequest).

Summary

Public methods

int getResultCode()

Returns result code.

int getTtcIndex()

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

Uri getUri()

Returns a URI associated to this record.

int getWeight()

Returns the weight value for this font.

boolean isItalic()

Returns whether this font is italic.

Inherited methods

Public methods

getResultCode

public int getResultCode ()

Returns result code. FontsContractCompat.Columns.RESULT_CODE

Returns
int

getTtcIndex

public int getTtcIndex ()

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

Returns
int

getUri

public Uri getUri ()

Returns a URI associated to this record.

Returns
Uri

getWeight

public int getWeight ()

Returns the weight value for this font.

Returns
int

Value is between 1 and 1000 inclusive.

isItalic

public boolean isItalic ()

Returns whether this font is italic.

Returns
boolean