Skip to content

Commit 7640672

Browse files
authored
fix: disable CoreText font matching on macOS (#214602)
1 parent d30df88 commit 7640672

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,13 @@ function configureCommandlineSwitchesSync(cliArgs) {
294294
`CalculateNativeWinOcclusion,${app.commandLine.getSwitchValue('disable-features')}`;
295295
app.commandLine.appendSwitch('disable-features', featuresToDisable);
296296

297+
// Blink features to configure.
298+
// `FontMatchingCTMigration` - Siwtch font matching on macOS to CoreText (Refs https://github.com/microsoft/vscode/issues/214390).
299+
// TODO(deepak1556): Enable this feature again after updating to Electron 30.
300+
const blinkFeaturesToDisable =
301+
`FontMatchingCTMigration,${app.commandLine.getSwitchValue('disable-blink-features')}`;
302+
app.commandLine.appendSwitch('disable-blink-features', blinkFeaturesToDisable);
303+
297304
// Support JS Flags
298305
const jsFlags = getJSFlags(cliArgs);
299306
if (jsFlags) {

0 commit comments

Comments
 (0)