Skip to main content

ferroui_base/media/
text_decoration_unit.rs

1/// Specifies the unit type of either a text decoration offset or thickness value.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum TextDecorationUnit {
4    /// A unit value that is relative to the font used for the text decoration.
5    /// If the decoration spans multiple fonts, an average recommended value is
6    /// calculated. This is the default value.
7    #[default]
8    FontRecommended,
9    /// A unit value that is relative to the em size of the font. The value of
10    /// the offset or thickness is equal to the offset or thickness value
11    /// multiplied by the font em size.
12    FontRenderingEmSize,
13    /// A unit value that is expressed in pixels.
14    Pixel,
15}