From a0ad403a91aafb2745dd09cd9e0ecc797c5d94cb Mon Sep 17 00:00:00 2001 From: Tomek Date: Wed, 17 Jun 2026 09:21:16 +0000 Subject: [PATCH] Stabilize Playwright Chrome text rendering across platforms (#4318) --- packages/gitbook/playwright.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/gitbook/playwright.config.ts b/packages/gitbook/playwright.config.ts index abfdaca9c..1010dcd52 100644 --- a/packages/gitbook/playwright.config.ts +++ b/packages/gitbook/playwright.config.ts @@ -18,6 +18,16 @@ export default defineConfig({ use: { ...devices['Desktop Chrome'], channel: 'chrome', + launchOptions: { + args: [ + // Disable subpixel (LCD) text so glyphs always render with + // grayscale antialiasing — removes the red/blue edge fringing + // that varies between macOS (local) and Linux (CI) runs. + '--disable-lcd-text', + // Disable font hinting so glyph rasterization is platform-independent. + '--font-render-hinting=none', + ], + }, }, }, ],