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

androidx.compose.ui.text.font

Interfaces

AndroidFont.TypefaceLoader

Loader for loading an AndroidFont and producing an android.graphics.Typeface.

Font

The interface of the font resource.

Font.ResourceLoader

This interface is deprecated. Replaced with FontFamily.Resolver during the introduction of async fonts, all usages should be replaced.

FontFamily.Resolver

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

FontVariation.Setting

Represents a single point in a variation, such as 0.7 or 100

Typeface

A class that can be used for changing the font used in text.

Classes

AndroidFont

Font for use on Android.

AndroidFontKt
AndroidTypefaceKt
DelegatingFontLoaderForDeprecatedUsageKt
DeviceFontFamilyName

An Android system installed font family name as used by Typeface.create.

DeviceFontFamilyNameFontKt
FileBasedFontFamily

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

FontFamily

The primary typography interface for Compose applications.

FontFamilyKt
FontFamilyResolverKt
FontKt
FontListFontFamily

Defines a font family with list of Font.

FontLoadingStrategy

Font loading strategy for a Font in a FontListFontFamily.

FontStyle

Defines whether the font is Italic or Normal.

FontSynthesis

Possible options for font synthesis.

FontVariation.Settings

A collection of settings to apply to a single font.

FontWeight

The thickness of the glyphs, in a range of 1, 1000.

FontWeightKt
GenericFontFamily

Defines a font family with a generic font family name.

LoadedFontFamily

Defines a font family that is already loaded Typeface.

ResourceFont

Defines a font to be used while rendering text with resource ID.

SystemFontFamily

A base class of FontFamilys installed on the system.

FontFamily.Companion
FontLoadingStrategy.Companion
FontStyle.Companion
FontSynthesis.Companion
FontVariation

Set font variation settings.

FontWeight.Companion