From bab3a9fdcb5f933eab4bf85fd30ade2fe69f9103 Mon Sep 17 00:00:00 2001 From: Robo Date: Fri, 7 Jun 2024 23:02:35 +0900 Subject: [PATCH] fix: disable CoreText font matching on macOS (#214601) --- src/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.js b/src/main.js index 9fe5654081d..d4bc388fb7f 100644 --- a/src/main.js +++ b/src/main.js @@ -294,6 +294,13 @@ function configureCommandlineSwitchesSync(cliArgs) { `CalculateNativeWinOcclusion,${app.commandLine.getSwitchValue('disable-features')}`; app.commandLine.appendSwitch('disable-features', featuresToDisable); + // Blink features to configure. + // `FontMatchingCTMigration` - Siwtch font matching on macOS to CoreText (Refs https://github.com/microsoft/vscode/issues/214390). + // TODO(deepak1556): Enable this feature again after updating to Electron 30. + const blinkFeaturesToDisable = + `FontMatchingCTMigration,${app.commandLine.getSwitchValue('disable-blink-features')}`; + app.commandLine.appendSwitch('disable-blink-features', blinkFeaturesToDisable); + // Support JS Flags const jsFlags = getJSFlags(cliArgs); if (jsFlags) {