1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

You can override the default Egui fonts

Closes https://github.com/emilk/egui/issues/32
This commit is contained in:
Emil Ernerfeldt
2020-10-31 18:03:13 +01:00
parent 82d55cb67e
commit ca96172552
7 changed files with 35 additions and 21 deletions

View File

@@ -132,7 +132,8 @@ pub struct AppRunner {
}
impl AppRunner {
pub fn new(web_backend: WebBackend, app: Box<dyn App>) -> Result<Self, JsValue> {
pub fn new(web_backend: WebBackend, mut app: Box<dyn App>) -> Result<Self, JsValue> {
app.setup(&web_backend.ctx);
Ok(Self {
pixels_per_point: native_pixels_per_point(),
web_backend,