1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Add a canvas based font fallback

This commit is contained in:
lucasmerlin
2026-01-18 15:43:55 +01:00
parent 73b7b9e225
commit 13ae49a8be
6 changed files with 378 additions and 16 deletions

View File

@@ -83,6 +83,17 @@ serde = { workspace = true, optional = true, features = ["derive", "rc"] }
epaint_default_fonts = { workspace = true, optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen.workspace = true
web-sys = { workspace = true, features = [
"CanvasRenderingContext2d",
"HtmlCanvasElement",
"ImageData",
"TextMetrics",
"Document",
"Window",
] }
[dev-dependencies]
criterion.workspace = true
mimalloc.workspace = true