use --font-render-hinting=none to fix kerning

When using font render hinting on Chrome headless on Linux, the kerning
is inconsistent. Several issues cover this, including:

* https://github.com/puppeteer/puppeteer/issues/661
* https://github.com/nzzdev/Q-server/pull/193

Disabling that render hinting entirely results in correct kerning.
This commit is contained in:
Blake Gentry
2019-12-30 20:49:07 -08:00
parent 568f3d6007
commit 6e56c6e0d4

View File

@@ -50,8 +50,9 @@ func cmd(logger xlog.Logger) (*exec.Cmd, error) {
"--headless",
// see https://github.com/thecodingmachine/gotenberg/issues/157.
"--disable-dev-shm-usage",
// see https://github.com/GoogleChrome/puppeteer/issues/2410.
"--font-render-hinting=medium",
// See https://github.com/puppeteer/puppeteer/issues/661
// and https://github.com/puppeteer/puppeteer/issues/2410.
"--font-render-hinting=none",
"--remote-debugging-port=9222",
"--disable-gpu",
"--disable-translate",