Struct elmesque::text::Style
[−]
[src]
pub struct Style { pub typeface: Option<PathBuf>, pub height: Option<f64>, pub color: Color, pub bold: bool, pub italic: bool, pub line: Option<Line>, pub monospace: bool, }
Represents all the ways you can style Text
. If the type_face
list is empty or the height
is None
, the users will fall back on their default settings. The following Style
is black,
16 pixel tall, underlined, and Times New Roman (assuming that typeface is available on the
user's computer):
Style { type_face: Some("Times New Roman"), height: Some(16), color: black(), bold: false, italic: false, line: Some(Line::Under), }
Fields
typeface | |
height | |
color | |
bold | |
italic | |
line | |
monospace |