We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fccc95 + 70b78b6 commit 1ca0b7eCopy full SHA for 1ca0b7e
plotters/src/style/font/web.rs
@@ -34,7 +34,7 @@ impl FontData for FontDataInternal {
34
let body = document.body().unwrap();
35
let span = document.create_element("span").unwrap();
36
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();
+ 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();
38
let span = span.into();
39
body.append_with_node_1(&span).unwrap();
40
let elem = JsCast::dyn_into::<HtmlElement>(span).unwrap();
0 commit comments