fix: disable CoreText font matching on macOS (#214601)

This commit is contained in:
Robo 2024-06-07 23:02:35 +09:00 committed by GitHub
parent 5422f5f940
commit bab3a9fdcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {