Skip to content

Commit 1ca0b7e

Browse files
authored
Merge pull request #602 from 10ne1/dev/aratiu/silence-warning
style/font: use web font style
2 parents 5fccc95 + 70b78b6 commit 1ca0b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotters/src/style/font/web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl FontData for FontDataInternal {
3434
let body = document.body().unwrap();
3535
let span = document.create_element("span").unwrap();
3636
span.set_text_content(Some(text));
37-
span.set_attribute("style", &format!("display: inline-block; font-family:{}; font-size: {}px; position: fixed; top: 100%", self.0, size)).unwrap();
37+
span.set_attribute("style", &format!("display: inline-block; font-family:{}; font-style:{}; font-size: {}px; position: fixed; top: 100%", self.0, self.1, size)).unwrap();
3838
let span = span.into();
3939
body.append_with_node_1(&span).unwrap();
4040
let elem = JsCast::dyn_into::<HtmlElement>(span).unwrap();

0 commit comments

Comments
 (0)