Skip to main content

text_format

Function text_format 

Source
pub fn text_format(
    properties: &TextProperties,
    inherited: f32,
    zoom: f32,
    palette: Palette,
) -> TextFormat
Expand description

What a resolved run of text is drawn with.

inherited is the size in points of the text this run sits inside, which is what a relative font size is relative to; zoom scales points to the screen.