use style instead of with_stroke

embedded-hal-1.0
Chris 2018-10-16 23:36:17 +02:00
parent 4ca0321573
commit dd70d02eb7
1 changed files with 5 additions and 2 deletions

View File

@ -268,8 +268,11 @@ fn run() -> Result<(), std::io::Error> {
display.draw( display.draw(
Font6x8::render_str("Hello World!") Font6x8::render_str("Hello World!")
.with_stroke(Some(Color::Black)) .with_style(Style {
.with_fill(Some(Color::White)) fill_color: Some(Color::White),
stroke_color: Some(Color::Black),
stroke_width: 0u8, // Has no effect on fonts
})
.translate(Coord::new(5 + i*10, 50)) .translate(Coord::new(5 + i*10, 50))
.into_iter(), .into_iter(),
); );