Enum piet::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
The font family.
Tuple Fields of FontFamily
0: FontFamily
The font size, in points.
Tuple Fields of FontSize
0: f64
The FontWeight
.
Tuple Fields of Weight
0: FontWeight
The foreground color of the text.
Tuple Fields of TextColor
0: Color
The FontStyle
; either regular or italic.
Tuple Fields of Style
0: FontStyle
Underline.
Tuple Fields of Underline
0: bool
Strikethrough.
Tuple Fields of Strikethrough
0: bool
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.