FontFamily

sealed interface FontFamily

A font family, which can be loaded from different sources.

Inheritors

Types

Link copied to clipboard
data class GoogleFont(val name: String) : FontFamily

A font family that is loaded from Google Fonts.

Link copied to clipboard
data class Media(val media: Media, val path: String) : FontFamily

A font family that is loaded from a media source, such as a file or URL.

Link copied to clipboard
data class System(val name: String) : FontFamily

A font family that is installed on the system.

Properties

Link copied to clipboard
open val id: String

Unique identifier for the font family, based on its path. Multiple font families with the same path will have the same ID.

Link copied to clipboard
abstract val path: String

Name, path or URL that the font family was loaded from.