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:
Status: Completed
No comments yet
Be the first to share your thoughts.