add a line through the big font
parent
b9a833ec5f
commit
1acdd8d107
|
|
@ -305,14 +305,14 @@ fn run() -> Result<(), std::io::Error> {
|
||||||
// Using Style here
|
// Using Style here
|
||||||
.with_style(Style {
|
.with_style(Style {
|
||||||
fill_color: Some(Color::Black),
|
fill_color: Some(Color::Black),
|
||||||
stroke_color: Some(Color::Black),
|
stroke_color: Some(Color::White),
|
||||||
stroke_width: 0u8, // Has no effect on fonts
|
stroke_width: 0u8, // Has no effect on fonts
|
||||||
})
|
})
|
||||||
.translate(Coord::new(50, 200))
|
.translate(Coord::new(50, 200))
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
|
|
||||||
display.draw(
|
display.draw(
|
||||||
Font12x16::render_str("It's working-BoW!")
|
Font12x16::render_str("It's working-BoW!")
|
||||||
// Using Style here
|
// Using Style here
|
||||||
.with_style(Style {
|
.with_style(Style {
|
||||||
|
|
@ -324,6 +324,12 @@ fn run() -> Result<(), std::io::Error> {
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
display.draw(
|
||||||
|
Line::new(Coord::new(60, 28), Coord::new(120, 28))
|
||||||
|
.with_stroke(Some(Color::White))
|
||||||
|
.into_iter(),
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue