Using fonts in Remotion
Google Fonts with @remotion/google-fonts
The recommended way to use Google Fonts. It’s type-safe and automatically blocks rendering until the font is ready.Prerequisites
First, the @remotion/google-fonts package needs to be installed. If it is not installed, use the following command:Waiting for font to load
UsewaitUntilDone() if you need to know when the font is ready:
Local fonts with @remotion/fonts
For local font files, use the@remotion/fonts package.
Prerequisites
First, install @remotion/fonts:Loading a local font
Place your font file in thepublic/ folder and use loadFont():
Loading multiple weights
Load each weight separately with the same family name:Available options
Using in components
CallloadFont() at the top level of your component or in a separate file that’s imported early: