Improve Font Loading for AWS Lambda Rendering (Google Fonts Timeout)

Description:
Rendering with AWS Lambda can occasionally fail due to long font-loading times. This is a known issue with Google Fonts and @remotion/google-fonts.

We’ve had a few reports where delayRender() is triggered but never resolved, causing Lambda to time out. This happens even when there are no visible text layers, due to how fonts are preloaded.

Proposed Solution Ideas:

  • Reduce or eliminate unused font weights/styles/subsets (done in version-7)

  • Add font subset customization via config

  • Support self-hosted fonts or allow skipping font loading entirely

  • Add fallback mechanism if font loading hangs

References:

Share update with 0 linked conversations as well

Upvoters
Status

Completed

Board

πŸ’‘ Feature Request

Date

Over 1 year ago

Author

Sam Bowen-Hughes

Subscribe to post

Get notified by email when there are changes.