export-html icon indicating copy to clipboard operation
export-html copied to clipboard

Fixed load web font in screenshot endpoint

Open vibolyoeung opened this issue 1 year ago • 0 comments

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;
});

vibolyoeung avatar Aug 27 '24 05:08 vibolyoeung