Struct composable::views::Text

source ·
pub struct Text<'a> { /* private fields */ }
Available on crate features unstable and views only.
Expand description

Text data

Implementations§

source§

impl Text<'_>

source

pub fn height(&self) -> f32

Height of the Text’s font.

source

pub fn ascender(&self) -> f32

Ascender height of the Text’s font.

source

pub fn descender(&self) -> f32

Descender height of the Text’s font.
Note that this is a negative value.

source

pub fn capital_height(&self) -> f32

Capital height of the Text’s font.

source

pub fn line_gap(&self) -> f32

Line gap of the Text’s font.