zng_wgt_text

Function font_palette

source
pub fn font_palette(
    child: impl UiNode,
    palette: impl IntoVar<FontColorPalette>,
) -> impl UiNode
Expand description

P Defines the palette used to render colored glyphs (Emoji).

This property only affects Emoji from fonts using COLR v0. You can use font_color to set the base color, and font_palette_colors to change specific colors.

Sets the FONT_PALETTE_VAR.