Package-level declarations
Types
Minimal HTTP abstraction used by the library to download font files and the Google Fonts directory.
A font family available on Google Fonts.
Thrown when a Google Font cannot be resolved or loaded.
Entry point for configuring the library.
Result of an in-progress Google Font load, distinguishing "still loading" from "failed".
Functions
Creates a Font for a Google Font using the default provider (Google Play Services on Android).
Creates a Font for a Google Font, mirroring the AndroidX ui-text-google-fonts API.
Initializes the library with an application context.
Checks whether the downloadable-fonts provider is available on this device.
Loads a Google Font and exposes the full load lifecycle: GoogleFontState.Loading, GoogleFontState.Loaded, and GoogleFontState.Failed.
Loads a Google Font and returns a FontFamily ready to be used in Text(fontFamily = ...).
Loads this Google Font at the given weights and returns a FontFamily with one face per weight, mirroring the FontFamily(Font(gf, W400), Font(gf, W700)) pattern.