mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-10 01:22:14 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user