Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--font-cache-shared-handle

What does --font-cache-shared-handle do?

DirectWrite FontCache is shared by browser to renderers using shared memory. This switch allows us to pass the shared memory handle to the renderer.

Usage

CLILaunch Chrome with --font-cache-shared-handle using CLI

chrome --font-cache-shared-handle

PuppeteerLaunch Chrome with --font-cache-shared-handle using Puppeteer

const browser = await puppeteer.launch({
  args: ['--font-cache-shared-handle']
});

PlaywrightLaunch Chrome with --font-cache-shared-handle using Playwright

const browser = await chromium.launch({
  args: ['--font-cache-shared-handle']
});

SeleniumLaunch Chrome with --font-cache-shared-handle using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--font-cache-shared-handle')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROIDWIN