🎥 Make videos programmatically with React
add google fonts package upgrade to 5.0 migration guide
Igor Samokhovetsefc7297378e2
diff --git a/packages/docs/docs/5-0-migration.mdx b/packages/docs/docs/5-0-migration.mdxindex 5f4c0b1aad..a7db65aa66 100644--- a/packages/docs/docs/5-0-migration.mdx+++ b/packages/docs/docs/5-0-migration.mdx@@ -93,6 +93,21 @@ This will add a miniscule cost to your renders technically, but will lead to mor`renderMediaOnLambda()`, `getRenderProgress()`, `renderStillOnLambda()`, `presignUrl()`, `getSites()` have been removed from `@remotion/lambda`.They are now available in `@remotion/lambda/client`.+## `@remotion/google-fonts` requires specifying weights and subsets++When using `loadFonts()` from `@remotion/google-fonts`, you must now specify which font weights and subsets you want to load. Loading all weights and subsets by default is no longer supported as it can lead to timeouts.++**Required action**: Explicitly specify the weights and subsets you need:++```ts+import {loadFont} from '@remotion/google-fonts/Roboto';++loadFont('normal', {+ weights: ['400', '700'],+ subsets: ['latin'],+});+```+## License changesRemotion 5.0 has an updated license. View the [license](https://github.com/remotion-dev/remotion/blob/5-0-license/LICENSE.md) here or compare the [changes](https://github.com/remotion-dev/remotion/pull/3750).