Chapter 227: preloadFont()
Core Idea
_This function is part of the @remotion/preload package.
Key Concepts
- Usage
- How it works
- Handle redirects
- See also
Code Examples
const unpreload = preloadFont(
"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBxc4AMP6lbBP.woff2"
);
// If you want to un-preload the font later
unpreload();
- What it demonstrates: Usage pattern for preloadFont() from the official docs.
Key Takeaways
- Understand usage when working with preloadFont().
- Understand how it works when working with preloadFont().
- Understand handle redirects when working with preloadFont().
- Understand see also when working with preloadFont().
Connects To
- Animatedimage: related page in the Assets & Media section.
- Delaying: related page in the Assets & Media section.
- Exporting: related page in the Assets & Media section.