export-html
export-html copied to clipboard
Fixed load web font in screenshot endpoint
Hi, I've created a PR to fix the loading of web fonts in the screenshot endpoint. The web fonts work well with PDFs, but they don't work for images.
// Wait for all fonts to be loaded
await page.evaluate(async () => {
await document.fonts.ready;
});