Updated RenderScope with positions

This commit is contained in:
2025-08-02 17:07:09 -05:00
parent ec3576e6db
commit ba04a82980
3 changed files with 59 additions and 25 deletions
+9 -5
View File
@@ -32,11 +32,15 @@ impl Element for Heading {
}
}
if let Some(t) = self.font.convert(&s) {
scope.draw_text(&if self.smooth {
format!("{t}").replace("-", "─").replace("|", "│")
} else {
format!("{t}")
});
scope.draw_text(
0,
0,
&if self.smooth {
format!("{t}").replace("-", "─").replace("|", "│")
} else {
format!("{t}")
},
);
}
}