Skip to content

Most visited

Recently visited

navigation

FontsContract.FontInfo

public static class FontsContract.FontInfo
extends Object

java.lang.Object
   ↳ android.provider.FontsContract.FontInfo


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

Summary

Public methods

FontVariationAxis[] getAxes()

Returns the list of axes associated to this font.

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

From class java.lang.Object

Public methods

getAxes

added in API level 26
FontVariationAxis[] getAxes ()

Returns the list of axes associated to this font.

Returns
FontVariationAxis[]

This value may be null.

getResultCode

added in API level 26
int getResultCode ()

Returns result code. RESULT_CODE

Returns
int

getTtcIndex

added in API level 26
int getTtcIndex ()

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

Returns
int

getUri

added in API level 26
Uri getUri ()

Returns a URI associated to this record.

Returns
Uri

This value will never be null.

getWeight

added in API level 26
int getWeight ()

Returns the weight value for this font.

Returns
int

Value is between 1 and 1000 inclusive.

isItalic

added in API level 26
boolean isItalic ()

Returns whether this font is italic.

Returns
boolean

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)