Skip to content

Commit

Permalink
Fix font kerning
Browse files Browse the repository at this point in the history
Fix font kerning for headless Chromium in Linux.
Tested with Chromium in docker container on macOS.
See screenshots attached to PR.

See also
puppeteer/puppeteer#661
puppeteer/puppeteer#2410
https://stackoverflow.com/questions/52552573/kerning-issues-with-headless-chrome
  • Loading branch information
romankaravia committed Nov 5, 2019
1 parent 5a7785f commit 58743b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/screenshot/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ const fetch = require("node-fetch");

// start a chromium process here
let browserPromise = puppeteer.launch({
args: ["--no-sandbox", "--disable-dev-shm-usage"]
args: [
"--no-sandbox",
"--disable-dev-shm-usage",
"--font-render-hinting=none"
]
});

// fetches assets and returns a concatenated string containing everything fetched
Expand Down

0 comments on commit 58743b8

Please sign in to comment.