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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user