with_font_variation

Function with_font_variation 

Source
pub fn with_font_variation(
    child: impl IntoUiNode,
    name: FontVariationName,
    value: impl IntoVar<f32>,
) -> UiNode
Expand description

Includes the font variation config in the widget context.

The variation name is set for the FONT_VARIATIONS_VAR in this context, variations already set in the parent context that are not the same name are also included.