🎥 Make videos programmatically with React
Fix bad font picker docs suggesting .load() loads the font
Jonny Burger9469183d694b
diff --git a/packages/docs/docs/font-picker.md b/packages/docs/docs/font-picker.mdxsimilarity index 99%rename from packages/docs/docs/font-picker.mdrename to packages/docs/docs/font-picker.mdxindex 66603501bd..7e16d38f3d 100644--- a/packages/docs/docs/font-picker.md+++ b/packages/docs/docs/font-picker.mdx@@ -7,9 +7,14 @@ crumb: "Building video apps"To show various Google fonts in a font picker and load them once the user selects them, first install `@remotion/google-fonts` (at least v3.3.64).-This feature is only available if `@remotion/google-fonts` is imported as an ES Module. If it is imported as a CommonJS module instead, loading a font will throw an error.+This feature is only available if `@remotion/google-fonts` is imported as an ES Module.+If it is imported as a CommonJS module instead, loading a font will throw an error.-Call [`getAvailableFonts()`](/docs/google-fonts/get-available-fonts) to get a list of Google Fonts and call `.load()` to load a specific font. Afterwards, you can call `getInfo()` to retrieve available styles and weights.+Call [`getAvailableFonts()`](/docs/google-fonts/get-available-fonts) to get a list of Google Fonts and call `.load()` to load the metadata of a font.+Afterwards, on the object you retrieve:++- You can call `getInfo()` to retrieve available styles and weights.+- You can call `loadFont()` to load the font itself.Use the `fontFamily` CSS property to apply a font.