Capítulo 227 de 988

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

  1. Understand usage when working with preloadFont().
  2. Understand how it works when working with preloadFont().
  3. Understand handle redirects when working with preloadFont().
  4. 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.