Common
sealed interface Setting
Represents a single point in a variation, such as 0.7 or 100
Properties
Common
val needsDensity: Boolean
True if this setting requires density to resolve
When false, may toVariationValue may be called with null or any Density
Common
val axisName: String
The font variation axis, such as 'wdth' or 'ital'
Functions
toVariationValue
fun toVariationValue(density: Density?): Float
Convert a value to a final value for use as a font variation setting.
If needsDensity is false, density may be null
Parameters
| density | to resolve from Compose types to feature-specific ranges. |