Enum piet_common::TextAttribute [−][src]
pub enum TextAttribute {
FontFamily(FontFamily),
FontSize(f64),
Weight(FontWeight),
TextColor(Color),
Style(FontStyle),
Underline(bool),
Strikethrough(bool),
}
Expand description
Attributes that can be applied to text.
Variants
FontFamily(FontFamily)
The font family.
Tuple Fields of FontFamily
0: FontFamily
FontSize(f64)
The font size, in points.
Tuple Fields of FontSize
0: f64
Weight(FontWeight)
The FontWeight
.
Tuple Fields of Weight
0: FontWeight
TextColor(Color)
The foreground color of the text.
Tuple Fields of TextColor
0: Color
Style(FontStyle)
The FontStyle
; either regular or italic.
Tuple Fields of Style
0: FontStyle
Underline(bool)
Underline.
Tuple Fields of Underline
0: bool
Strikethrough(bool)
Strikethrough.
Tuple Fields of Strikethrough
0: bool
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.