Skip to content

Most visited

Recently visited

navigation

FontConfig.Family

public static final class FontConfig.Family
extends Object implements Parcelable

java.lang.Object
   ↳ android.text.FontConfig.Family


Class that holds information about a Font family.

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<FontConfig.Family> CREATOR

Public constructors

FontConfig.Family(String name, List<FontConfig.Font> fonts, String language, String variant)
FontConfig.Family(FontConfig.Family origin)

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

List<FontConfig.Font> getFonts()

Returns the list of fonts included in this family.

String getLanguage()

Returns the language for this family.

String getName()

Returns the name given by the system to this font family.

String getVariant()

Returns the font variant for this family, e.g.

void writeToParcel(Parcel out, int flag)

Flatten this object in to a Parcel.

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Fields

Public constructors

FontConfig.Family

FontConfig.Family (String name, 
                List<FontConfig.Font> fonts, 
                String language, 
                String variant)

Parameters
name String
fonts List
language String
variant String

FontConfig.Family

FontConfig.Family (FontConfig.Family origin)

Parameters
origin FontConfig.Family

Public methods

describeContents

int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

getFonts

List<FontConfig.Font> getFonts ()

Returns the list of fonts included in this family.

Returns
List<FontConfig.Font>

getLanguage

String getLanguage ()

Returns the language for this family. May be null.

Returns
String

getName

String getName ()

Returns the name given by the system to this font family.

Returns
String

getVariant

String getVariant ()

Returns the font variant for this family, e.g. "elegant" or "compact". May be null.

Returns
String

writeToParcel

void writeToParcel (Parcel out, 
                int flag)

Flatten this object in to a Parcel.

Parameters
out Parcel: The Parcel in which the object should be written.
flag int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

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 one-minute survey?
Help us improve Android tools and documentation.