From 61d7b4ecc3f313d964752b3c6f7c302882529867 Mon Sep 17 00:00:00 2001 From: Puzhen Zhang <91596298+nitpicker55555@users.noreply.github.com> Date: Fri, 27 Feb 2026 08:29:47 +0000 Subject: [PATCH] fix: disable Fontations font engine to prevent crash on macOS (#1382) --- electron/main/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/main/index.ts b/electron/main/index.ts index 7da37801..2953fcb2 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -352,6 +352,9 @@ app.commandLine.appendSwitch('max_old_space_size', '4096'); app.commandLine.appendSwitch('enable-features', 'MemoryPressureReduction'); app.commandLine.appendSwitch('renderer-process-limit', '8'); +// Disable Fontations (Rust-based font engine) to prevent crashes on macOS +app.commandLine.appendSwitch('disable-features', 'Fontations'); + // ==================== Proxy configuration ==================== // Read proxy from global .env file on startup proxyUrl = readGlobalEnvKey('HTTP_PROXY');