From 8206092f26642c95a5dc6558b4a26378327d23e9 Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Thu, 22 Feb 2024 08:59:09 -0500 Subject: [PATCH] possible fix for fonts not rendering correctly --- source/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/index.ts b/source/index.ts index 522cbbe..ffd027b 100644 --- a/source/index.ts +++ b/source/index.ts @@ -223,6 +223,7 @@ class Chromium { "--no-default-browser-check", // https://source.chromium.org/search?q=lang:cpp+symbol:kNoDefaultBrowserCheck&ss=chromium "--no-pings", // https://source.chromium.org/search?q=lang:cpp+symbol:kNoPings&ss=chromium "--single-process", // Needs to be single-process to avoid `prctl(PR_SET_NO_NEW_PRIVS) failed` error + "--font-render-hinting=none", // https://github.com/puppeteer/puppeteer/issues/2410#issuecomment-560573612 ]; const chromiumDisableFeatures = [ "AudioServiceOutOfProcess",