{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FontFamily

public sealed class FontFamily

Known direct subclasses
FileBasedFontFamily

A base class of FontFamilys that is created from file sources.

LoadedFontFamily

Defines a font family that is already loaded Typeface.

SystemFontFamily

A base class of FontFamilys installed on the system.

Known indirect subclasses
FontListFontFamily

Defines a font family with list of Font.

GenericFontFamily

Defines a font family with a generic font family name.


The primary typography interface for Compose applications.

See also
FontListFontFamily
GenericFontFamily
FontFamily.Resolver

Summary

Nested types

public static class FontFamily.Companion
public sealed interface FontFamily.Resolver

Main interface for resolving FontFamily into a platform-specific typeface for use in Compose-based applications.

Protected constructors

FontFamily(boolean canLoadSynchronously)

Public methods

final boolean

This method is deprecated. Unused property that has no meaning.

Protected constructors

FontFamily

protected FontFamily(boolean canLoadSynchronously)

Public methods

getCanLoadSynchronously

public final boolean getCanLoadSynchronously()