🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

FontListFontFamily

Defines a font family with list of Font.

Source set: Common
public class FontListFontFamily internal constructor(
    /** The fallback list of fonts used for resolving typefaces for this FontFamily. */
    public val fonts: List<Font>
) : FileBasedFontFamily(), List<Font> by fonts {
    init {
        checkPrecondition(fonts.isNotEmpty()) { "At least one font should be passed to FontFamily" }
    }

    public override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is FontListFontFamily) return false
        if (fonts != other.fonts) return false
        return true
    }

    public override fun hashCode(): Int {
        return fonts.hashCode()
    }

    public override fun toString(): String {
        return "FontListFontFamily(fonts=$fonts)"
    }
}

Defines a font family with list of Font.