Closed markjoshwel closed 2 months ago
Hello @markjoshwel,
Thank you for opening an issue and providing some valuable details.
I'll update the browser's arguments to include --font-render-hinting=none
by default.
Furthermore, I will make it possible to pass arguments to the browser via the configuration.
as seen in https://github.com/puppeteer/puppeteer/issues/2410
running
mkdocs serve
on windows:running
mkdocs build
on linux:running
mkdocs build
on linux with--font-render-hinting=none
:running
mkdocs serve
, and viewing it on a browser:while the windows and the 'fixed' linux pdf do still have kerning difference, looking at the woes of the people before us (https://www.google.com/search?q=bad+font+kerning+on+headless+chrome), this would be considered 'the bare minimum' to fix glaring inconsistent typography issues
the fix for this, as per the issue, would be to add
--font-render-hinting=none
to the args of chromium inmkdocs_exporter/formats/pdf/browser.py
:once again, thanks for the project :)