baldur
baldur

Remember this Chrome headless bug that Iā€™ve been obsessing about?

Turns out that this is a known bug in Chrome headless on Linux. To fix it either turn off hinting or subpixel positioning

github.com/puppeteerā€¦

Screenshot from Chrome headless where the text rendering is all over the place Another screenshot of unreadable text

|
Embed
Progress spinner
baldur
baldur

@baldur Basically, all of your PDF renders using headless Chrome on Linux have broken typography: no hyphens (bug #6840) and broken font hinting leading to bad kerning in varying degrees.

Fix it using either --font-render-hinting=none or --disable-font-subpixel-positioning

Both flags have the same result in my testing. Then you need to use a hyphenation polyfill like hyphenopoly to make up for bug #6840 (no hyphens on headless Chrome)

|
Embed
Progress spinner
In reply to
fgtech
fgtech

@baldur šŸ„³

|
Embed
Progress spinner