createDefaultFont

actual fun createDefaultFont(weight: Int, style: FontStyle, traits: Set<FontTrait>): KalugaFont

Creates a system font with a given weight, FontStyle and FontTrait

Return

a KalugaFont representing the system font with the given specifications

Parameters

weight

the weight to apply. Must be in range 1, 100

style

the FontStyle to apply

traits

the set of FontTrait to apply

fun createDefaultFont(weight: FontWeight, style: FontStyle = FontStyle.DEFAULT, traits: Set<FontTrait> = emptySet()): KalugaFont

Creates a system font with a given FontWeight, FontStyle and FontTrait

Return

a KalugaFont representing the system font with the given specifications

Parameters

weight

the FontWeight to apply

style

the FontStyle to apply

traits

the set of FontTrait to apply


expect fun createDefaultFont(weight: Int, style: FontStyle = FontStyle.DEFAULT, traits: Set<FontTrait> = emptySet()): KalugaFont

Creates a system font with a given weight, FontStyle and FontTrait

Return

a KalugaFont representing the system font with the given specifications

Parameters

weight

the weight to apply. Must be in range 1, 100

style

the FontStyle to apply

traits

the set of FontTrait to apply

actual fun createDefaultFont(weight: Int, style: FontStyle, traits: Set<FontTrait>): KalugaFont

Creates a system font with a given weight, FontStyle and FontTrait

Return

a KalugaFont representing the system font with the given specifications

Parameters

weight

the weight to apply. Must be in range 1, 100

style

the FontStyle to apply

traits

the set of FontTrait to apply