Do not scale up fonts on WASM

This commit is contained in:
Piotr Siuszko 2025-01-09 18:17:08 +01:00
parent 6a8777453f
commit dd81ae7451
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ pub fn setup_custom_fonts(ctx: &egui::Context) {
// Tell egui to use these fonts:
ctx.set_fonts(fonts);
#[cfg(not(target_arch = "wasm32"))]
ctx.style_mut(|style| {
for font_id in style.text_styles.values_mut() {
font_id.size *= 1.4;