Skip to content

Conversation

@vibolyoeung
Copy link

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 vibolyoeung changed the title Fixed load web font Fixed load web font in screenshot endpoint Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants