Skip to content

🎥 Make videos programmatically with React

typesafe font picker import

Jonny Burger747571b53ff9
diff --git a/packages/docs/docs/font-picker.mdx b/packages/docs/docs/font-picker.mdx
index 7e16d38f3d..44027f04f8 100644
--- a/packages/docs/docs/font-picker.mdx
+++ b/packages/docs/docs/font-picker.mdx
@@ -79,706 +79,1185 @@ export const FontPicker: React.FC = () => {
To reduce bundle size, you can limit the selection. Instead of calling `getAvailableFonts()`, create a file with the following contents and use it as the fonts array:
```ts twoslash
+import type { GoogleFont } from "@remotion/google-fonts";
+
export const top250 = [
- { family: "ABeeZee", load: () => import("@remotion/google-fonts/ABeeZee") },
- { family: "Abel", load: () => import("@remotion/google-fonts/Abel") },
+ {
+ family: "ABeeZee",
+ load: () => import("@remotion/google-fonts/ABeeZee") as Promise<GoogleFont>,
+ },
+ {
+ family: "Abel",
+ load: () => import("@remotion/google-fonts/Abel") as Promise<GoogleFont>,
+ },
{
family: "Abril Fatface",
- load: () => import("@remotion/google-fonts/AbrilFatface"),
+ load: () =>
+ import("@remotion/google-fonts/AbrilFatface") as Promise<GoogleFont>,
+ },
+ {
+ family: "Acme",
+ load: () => import("@remotion/google-fonts/Acme") as Promise<GoogleFont>,
+ },
+ {
+ family: "Alata",
+ load: () => import("@remotion/google-fonts/Alata") as Promise<GoogleFont>,
+ },
+ {
+ family: "Albert Sans",
+ load: () =>
+ import("@remotion/google-fonts/AlbertSans") as Promise<GoogleFont>,
},
- { family: "Acme", load: () => import("@remotion/google-fonts/Acme") },
{
- family: "Advent Pro",
- load: () => import("@remotion/google-fonts/AdventPro"),
+ family: "Alegreya",
+ load: () =>
+ import("@remotion/google-fonts/Alegreya") as Promise<GoogleFont>,
},
- { family: "Alata", load: () => import("@remotion/google-fonts/Alata") },
- { family: "Alegreya", load: () => import("@remotion/google-fonts/Alegreya") },
{
family: "Alegreya Sans",
- load: () => import("@remotion/google-fonts/AlegreyaSans"),
+ load: () =>
+ import("@remotion/google-fonts/AlegreyaSans") as Promise<GoogleFont>,
},
{
family: "Alegreya Sans SC",
- load: () => import("@remotion/google-fonts/AlegreyaSansSC"),
+ load: () =>
+ import("@remotion/google-fonts/AlegreyaSansSC") as Promise<GoogleFont>,
},
- { family: "Aleo", load: () => import("@remotion/google-fonts/Aleo") },
{
family: "Alfa Slab One",
- load: () => import("@remotion/google-fonts/AlfaSlabOne"),
+ load: () =>
+ import("@remotion/google-fonts/AlfaSlabOne") as Promise<GoogleFont>,
+ },
+ {
+ family: "Alice",
+ load: () => import("@remotion/google-fonts/Alice") as Promise<GoogleFont>,
+ },
+ {
+ family: "Almarai",
+ load: () => import("@remotion/google-fonts/Almarai") as Promise<GoogleFont>,
},
- { family: "Alice", load: () => import("@remotion/google-fonts/Alice") },
- { family: "Almarai", load: () => import("@remotion/google-fonts/Almarai") },
{
family: "Amatic SC",
- load: () => import("@remotion/google-fonts/AmaticSC"),
+ load: () =>
+ import("@remotion/google-fonts/AmaticSC") as Promise<GoogleFont>,
+ },
+ {
+ family: "Amiri",
+ load: () => import("@remotion/google-fonts/Amiri") as Promise<GoogleFont>,
},
- { family: "Amiri", load: () => import("@remotion/google-fonts/Amiri") },
{
family: "Antic Slab",
- load: () => import("@remotion/google-fonts/AnticSlab"),
+ load: () =>
+ import("@remotion/google-fonts/AnticSlab") as Promise<GoogleFont>,
+ },
+ {
+ family: "Anton",
+ load: () => import("@remotion/google-fonts/Anton") as Promise<GoogleFont>,
},
- { family: "Anton", load: () => import("@remotion/google-fonts/Anton") },
- { family: "Antonio", load: () => import("@remotion/google-fonts/Antonio") },
{
family: "Architects Daughter",
- load: () => import("@remotion/google-fonts/ArchitectsDaughter"),
+ load: () =>
+ import(
+ "@remotion/google-fonts/ArchitectsDaughter"
+ ) as Promise<GoogleFont>,
+ },
+ {
+ family: "Archivo",
+ load: () => import("@remotion/google-fonts/Archivo") as Promise<GoogleFont>,
},
- { family: "Archivo", load: () => import("@remotion/google-fonts/Archivo") },
{
family: "Archivo Black",
- load: () => import("@remotion/google-fonts/ArchivoBlack"),
+ load: () =>
+ import("@remotion/google-fonts/ArchivoBlack") as Promise<GoogleFont>,
},
{
family: "Archivo Narrow",
- load: () => import("@remotion/google-fonts/ArchivoNarrow"),
+ load: () =>
+ import("@remotion/google-fonts/ArchivoNarrow") as Promise<GoogleFont>,
+ },
+ {
+ family: "Arimo",
+ load: () => import("@remotion/google-fonts/Arimo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Arsenal",
+ load: () => import("@remotion/google-fonts/Arsenal") as Promise<GoogleFont>,
+ },
+ {
+ family: "Arvo",
+ load: () => import("@remotion/google-fonts/Arvo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Asap",
+ load: () => import("@remotion/google-fonts/Asap") as Promise<GoogleFont>,
},
- { family: "Arimo", load: () => import("@remotion/google-fonts/Arimo") },
- { family: "Arsenal", load: () => import("@remotion/google-fonts/Arsenal") },
- { family: "Arvo", load: () => import("@remotion/google-fonts/Arvo") },
- { family: "Asap", load: () => import("@remotion/google-fonts/Asap") },
{
family: "Asap Condensed",
- load: () => import("@remotion/google-fonts/AsapCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/AsapCondensed") as Promise<GoogleFont>,
},
{
family: "Assistant",
- load: () => import("@remotion/google-fonts/Assistant"),
+ load: () =>
+ import("@remotion/google-fonts/Assistant") as Promise<GoogleFont>,
+ },
+ {
+ family: "Barlow",
+ load: () => import("@remotion/google-fonts/Barlow") as Promise<GoogleFont>,
},
- { family: "Baloo 2", load: () => import("@remotion/google-fonts/Baloo2") },
- { family: "Bangers", load: () => import("@remotion/google-fonts/Bangers") },
- { family: "Barlow", load: () => import("@remotion/google-fonts/Barlow") },
{
family: "Barlow Condensed",
- load: () => import("@remotion/google-fonts/BarlowCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/BarlowCondensed") as Promise<GoogleFont>,
},
{
family: "Barlow Semi Condensed",
- load: () => import("@remotion/google-fonts/BarlowSemiCondensed"),
+ load: () =>
+ import(
+ "@remotion/google-fonts/BarlowSemiCondensed"
+ ) as Promise<GoogleFont>,
},
{
family: "Be Vietnam Pro",
- load: () => import("@remotion/google-fonts/BeVietnamPro"),
+ load: () =>
+ import("@remotion/google-fonts/BeVietnamPro") as Promise<GoogleFont>,
},
{
family: "Bebas Neue",
- load: () => import("@remotion/google-fonts/BebasNeue"),
+ load: () =>
+ import("@remotion/google-fonts/BebasNeue") as Promise<GoogleFont>,
+ },
+ {
+ family: "Bitter",
+ load: () => import("@remotion/google-fonts/Bitter") as Promise<GoogleFont>,
+ },
+ {
+ family: "Black Ops One",
+ load: () =>
+ import("@remotion/google-fonts/BlackOpsOne") as Promise<GoogleFont>,
},
- { family: "Bitter", load: () => import("@remotion/google-fonts/Bitter") },
{
family: "Bodoni Moda",
- load: () => import("@remotion/google-fonts/BodoniModa"),
+ load: () =>
+ import("@remotion/google-fonts/BodoniModa") as Promise<GoogleFont>,
},
{
family: "Bree Serif",
- load: () => import("@remotion/google-fonts/BreeSerif"),
+ load: () =>
+ import("@remotion/google-fonts/BreeSerif") as Promise<GoogleFont>,
+ },
+ {
+ family: "Bungee",
+ load: () => import("@remotion/google-fonts/Bungee") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cabin",
+ load: () => import("@remotion/google-fonts/Cabin") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cairo",
+ load: () => import("@remotion/google-fonts/Cairo") as Promise<GoogleFont>,
},
- { family: "Cabin", load: () => import("@remotion/google-fonts/Cabin") },
- { family: "Cairo", load: () => import("@remotion/google-fonts/Cairo") },
{
family: "Cantarell",
- load: () => import("@remotion/google-fonts/Cantarell"),
+ load: () =>
+ import("@remotion/google-fonts/Cantarell") as Promise<GoogleFont>,
},
- { family: "Cardo", load: () => import("@remotion/google-fonts/Cardo") },
{
- family: "Carter One",
- load: () => import("@remotion/google-fonts/CarterOne"),
+ family: "Cardo",
+ load: () => import("@remotion/google-fonts/Cardo") as Promise<GoogleFont>,
},
{
family: "Catamaran",
- load: () => import("@remotion/google-fonts/Catamaran"),
+ load: () =>
+ import("@remotion/google-fonts/Catamaran") as Promise<GoogleFont>,
+ },
+ {
+ family: "Caveat",
+ load: () => import("@remotion/google-fonts/Caveat") as Promise<GoogleFont>,
},
- { family: "Caveat", load: () => import("@remotion/google-fonts/Caveat") },
{
family: "Chakra Petch",
- load: () => import("@remotion/google-fonts/ChakraPetch"),
+ load: () =>
+ import("@remotion/google-fonts/ChakraPetch") as Promise<GoogleFont>,
+ },
+ {
+ family: "Changa",
+ load: () => import("@remotion/google-fonts/Changa") as Promise<GoogleFont>,
+ },
+ {
+ family: "Chivo",
+ load: () => import("@remotion/google-fonts/Chivo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cinzel",
+ load: () => import("@remotion/google-fonts/Cinzel") as Promise<GoogleFont>,
},
- { family: "Changa", load: () => import("@remotion/google-fonts/Changa") },
- { family: "Chivo", load: () => import("@remotion/google-fonts/Chivo") },
- { family: "Cinzel", load: () => import("@remotion/google-fonts/Cinzel") },
{
family: "Comfortaa",
- load: () => import("@remotion/google-fonts/Comfortaa"),
+ load: () =>
+ import("@remotion/google-fonts/Comfortaa") as Promise<GoogleFont>,
},
{
family: "Commissioner",
- load: () => import("@remotion/google-fonts/Commissioner"),
+ load: () =>
+ import("@remotion/google-fonts/Commissioner") as Promise<GoogleFont>,
},
{
family: "Concert One",
- load: () => import("@remotion/google-fonts/ConcertOne"),
+ load: () =>
+ import("@remotion/google-fonts/ConcertOne") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cookie",
+ load: () => import("@remotion/google-fonts/Cookie") as Promise<GoogleFont>,
},
- { family: "Cookie", load: () => import("@remotion/google-fonts/Cookie") },
{
family: "Cormorant",
- load: () => import("@remotion/google-fonts/Cormorant"),
+ load: () =>
+ import("@remotion/google-fonts/Cormorant") as Promise<GoogleFont>,
},
{
family: "Cormorant Garamond",
- load: () => import("@remotion/google-fonts/CormorantGaramond"),
+ load: () =>
+ import("@remotion/google-fonts/CormorantGaramond") as Promise<GoogleFont>,
},
{
family: "Courgette",
- load: () => import("@remotion/google-fonts/Courgette"),
+ load: () =>
+ import("@remotion/google-fonts/Courgette") as Promise<GoogleFont>,
},
{
family: "Crete Round",
- load: () => import("@remotion/google-fonts/CreteRound"),
+ load: () =>
+ import("@remotion/google-fonts/CreteRound") as Promise<GoogleFont>,
},
{
family: "Crimson Pro",
- load: () => import("@remotion/google-fonts/CrimsonPro"),
+ load: () =>
+ import("@remotion/google-fonts/CrimsonPro") as Promise<GoogleFont>,
},
{
family: "Crimson Text",
- load: () => import("@remotion/google-fonts/CrimsonText"),
+ load: () =>
+ import("@remotion/google-fonts/CrimsonText") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cuprum",
+ load: () => import("@remotion/google-fonts/Cuprum") as Promise<GoogleFont>,
+ },
+ {
+ family: "DM Sans",
+ load: () => import("@remotion/google-fonts/DMSans") as Promise<GoogleFont>,
},
- { family: "Cuprum", load: () => import("@remotion/google-fonts/Cuprum") },
- { family: "DM Sans", load: () => import("@remotion/google-fonts/DMSans") },
{
family: "DM Serif Display",
- load: () => import("@remotion/google-fonts/DMSerifDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/DMSerifDisplay") as Promise<GoogleFont>,
},
{
family: "DM Serif Text",
- load: () => import("@remotion/google-fonts/DMSerifText"),
+ load: () =>
+ import("@remotion/google-fonts/DMSerifText") as Promise<GoogleFont>,
},
{
family: "Dancing Script",
- load: () => import("@remotion/google-fonts/DancingScript"),
+ load: () =>
+ import("@remotion/google-fonts/DancingScript") as Promise<GoogleFont>,
},
{
family: "Didact Gothic",
- load: () => import("@remotion/google-fonts/DidactGothic"),
+ load: () =>
+ import("@remotion/google-fonts/DidactGothic") as Promise<GoogleFont>,
+ },
+ {
+ family: "Domine",
+ load: () => import("@remotion/google-fonts/Domine") as Promise<GoogleFont>,
+ },
+ {
+ family: "Dosis",
+ load: () => import("@remotion/google-fonts/Dosis") as Promise<GoogleFont>,
},
- { family: "Domine", load: () => import("@remotion/google-fonts/Domine") },
- { family: "Dosis", load: () => import("@remotion/google-fonts/Dosis") },
{
family: "EB Garamond",
- load: () => import("@remotion/google-fonts/EBGaramond"),
+ load: () =>
+ import("@remotion/google-fonts/EBGaramond") as Promise<GoogleFont>,
+ },
+ {
+ family: "Eczar",
+ load: () => import("@remotion/google-fonts/Eczar") as Promise<GoogleFont>,
},
{
family: "El Messiri",
- load: () => import("@remotion/google-fonts/ElMessiri"),
+ load: () =>
+ import("@remotion/google-fonts/ElMessiri") as Promise<GoogleFont>,
+ },
+ {
+ family: "Electrolize",
+ load: () =>
+ import("@remotion/google-fonts/Electrolize") as Promise<GoogleFont>,
},
{
family: "Encode Sans",
- load: () => import("@remotion/google-fonts/EncodeSans"),
+ load: () =>
+ import("@remotion/google-fonts/EncodeSans") as Promise<GoogleFont>,
},
- { family: "Exo", load: () => import("@remotion/google-fonts/Exo") },
- { family: "Exo 2", load: () => import("@remotion/google-fonts/Exo2") },
- { family: "Faustina", load: () => import("@remotion/google-fonts/Faustina") },
- { family: "Figtree", load: () => import("@remotion/google-fonts/Figtree") },
{
- family: "Fira Sans",
- load: () => import("@remotion/google-fonts/FiraSans"),
+ family: "Encode Sans Condensed",
+ load: () =>
+ import(
+ "@remotion/google-fonts/EncodeSansCondensed"
+ ) as Promise<GoogleFont>,
},
{
- family: "Fira Sans Condensed",
- load: () => import("@remotion/google-fonts/FiraSansCondensed"),
+ family: "Exo",
+ load: () => import("@remotion/google-fonts/Exo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Exo 2",
+ load: () => import("@remotion/google-fonts/Exo2") as Promise<GoogleFont>,
},
{
- family: "Fira Sans Extra Condensed",
- load: () => import("@remotion/google-fonts/FiraSansExtraCondensed"),
+ family: "Figtree",
+ load: () => import("@remotion/google-fonts/Figtree") as Promise<GoogleFont>,
+ },
+ {
+ family: "Fira Sans",
+ load: () =>
+ import("@remotion/google-fonts/FiraSans") as Promise<GoogleFont>,
+ },
+ {
+ family: "Fira Sans Condensed",
+ load: () =>
+ import("@remotion/google-fonts/FiraSansCondensed") as Promise<GoogleFont>,
},
{
family: "Fjalla One",
- load: () => import("@remotion/google-fonts/FjallaOne"),
+ load: () =>
+ import("@remotion/google-fonts/FjallaOne") as Promise<GoogleFont>,
},
{
family: "Francois One",
- load: () => import("@remotion/google-fonts/FrancoisOne"),
+ load: () =>
+ import("@remotion/google-fonts/FrancoisOne") as Promise<GoogleFont>,
},
{
family: "Frank Ruhl Libre",
- load: () => import("@remotion/google-fonts/FrankRuhlLibre"),
+ load: () =>
+ import("@remotion/google-fonts/FrankRuhlLibre") as Promise<GoogleFont>,
+ },
+ {
+ family: "Fraunces",
+ load: () =>
+ import("@remotion/google-fonts/Fraunces") as Promise<GoogleFont>,
+ },
+ {
+ family: "Gelasio",
+ load: () => import("@remotion/google-fonts/Gelasio") as Promise<GoogleFont>,
},
- { family: "Gelasio", load: () => import("@remotion/google-fonts/Gelasio") },
{
family: "Gloria Hallelujah",
- load: () => import("@remotion/google-fonts/GloriaHallelujah"),
+ load: () =>
+ import("@remotion/google-fonts/GloriaHallelujah") as Promise<GoogleFont>,
},
{
family: "Gothic A1",
- load: () => import("@remotion/google-fonts/GothicA1"),
+ load: () =>
+ import("@remotion/google-fonts/GothicA1") as Promise<GoogleFont>,
},
{
family: "Great Vibes",
- load: () => import("@remotion/google-fonts/GreatVibes"),
+ load: () =>
+ import("@remotion/google-fonts/GreatVibes") as Promise<GoogleFont>,
+ },
+ {
+ family: "Gruppo",
+ load: () => import("@remotion/google-fonts/Gruppo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Heebo",
+ load: () => import("@remotion/google-fonts/Heebo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Hind",
+ load: () => import("@remotion/google-fonts/Hind") as Promise<GoogleFont>,
},
- { family: "Gruppo", load: () => import("@remotion/google-fonts/Gruppo") },
- { family: "Handlee", load: () => import("@remotion/google-fonts/Handlee") },
- { family: "Heebo", load: () => import("@remotion/google-fonts/Heebo") },
- { family: "Hind", load: () => import("@remotion/google-fonts/Hind") },
{
family: "Hind Madurai",
- load: () => import("@remotion/google-fonts/HindMadurai"),
+ load: () =>
+ import("@remotion/google-fonts/HindMadurai") as Promise<GoogleFont>,
},
{
family: "Hind Siliguri",
- load: () => import("@remotion/google-fonts/HindSiliguri"),
+ load: () =>
+ import("@remotion/google-fonts/HindSiliguri") as Promise<GoogleFont>,
},
{
family: "IBM Plex Mono",
- load: () => import("@remotion/google-fonts/IBMPlexMono"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexMono") as Promise<GoogleFont>,
},
{
family: "IBM Plex Sans",
- load: () => import("@remotion/google-fonts/IBMPlexSans"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexSans") as Promise<GoogleFont>,
},
{
family: "IBM Plex Sans Arabic",
- load: () => import("@remotion/google-fonts/IBMPlexSansArabic"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexSansArabic") as Promise<GoogleFont>,
},
{
family: "IBM Plex Sans Condensed",
- load: () => import("@remotion/google-fonts/IBMPlexSansCondensed"),
+ load: () =>
+ import(
+ "@remotion/google-fonts/IBMPlexSansCondensed"
+ ) as Promise<GoogleFont>,
},
{
family: "IBM Plex Serif",
- load: () => import("@remotion/google-fonts/IBMPlexSerif"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexSerif") as Promise<GoogleFont>,
},
{
family: "Inconsolata",
- load: () => import("@remotion/google-fonts/Inconsolata"),
+ load: () =>
+ import("@remotion/google-fonts/Inconsolata") as Promise<GoogleFont>,
},
{
family: "Indie Flower",
- load: () => import("@remotion/google-fonts/IndieFlower"),
+ load: () =>
+ import("@remotion/google-fonts/IndieFlower") as Promise<GoogleFont>,
+ },
+ {
+ family: "Inter",
+ load: () => import("@remotion/google-fonts/Inter") as Promise<GoogleFont>,
+ },
+ {
+ family: "Inter Tight",
+ load: () =>
+ import("@remotion/google-fonts/InterTight") as Promise<GoogleFont>,
},
- { family: "Inter", load: () => import("@remotion/google-fonts/Inter") },
{
family: "Josefin Sans",
- load: () => import("@remotion/google-fonts/JosefinSans"),
+ load: () =>
+ import("@remotion/google-fonts/JosefinSans") as Promise<GoogleFont>,
},
{
family: "Josefin Slab",
- load: () => import("@remotion/google-fonts/JosefinSlab"),
+ load: () =>
+ import("@remotion/google-fonts/JosefinSlab") as Promise<GoogleFont>,
+ },
+ {
+ family: "Jost",
+ load: () => import("@remotion/google-fonts/Jost") as Promise<GoogleFont>,
+ },
+ {
+ family: "Kalam",
+ load: () => import("@remotion/google-fonts/Kalam") as Promise<GoogleFont>,
+ },
+ {
+ family: "Kanit",
+ load: () => import("@remotion/google-fonts/Kanit") as Promise<GoogleFont>,
+ },
+ {
+ family: "Karla",
+ load: () => import("@remotion/google-fonts/Karla") as Promise<GoogleFont>,
},
- { family: "Jost", load: () => import("@remotion/google-fonts/Jost") },
- { family: "Kalam", load: () => import("@remotion/google-fonts/Kalam") },
- { family: "Kanit", load: () => import("@remotion/google-fonts/Kanit") },
- { family: "Karla", load: () => import("@remotion/google-fonts/Karla") },
{
family: "Kaushan Script",
- load: () => import("@remotion/google-fonts/KaushanScript"),
+ load: () =>
+ import("@remotion/google-fonts/KaushanScript") as Promise<GoogleFont>,
+ },
+ {
+ family: "Khand",
+ load: () => import("@remotion/google-fonts/Khand") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lato",
+ load: () => import("@remotion/google-fonts/Lato") as Promise<GoogleFont>,
},
- { family: "Khand", load: () => import("@remotion/google-fonts/Khand") },
{
- family: "Kosugi Maru",
- load: () => import("@remotion/google-fonts/KosugiMaru"),
+ family: "League Spartan",
+ load: () =>
+ import("@remotion/google-fonts/LeagueSpartan") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lexend",
+ load: () => import("@remotion/google-fonts/Lexend") as Promise<GoogleFont>,
},
- { family: "Lato", load: () => import("@remotion/google-fonts/Lato") },
- { family: "Lexend", load: () => import("@remotion/google-fonts/Lexend") },
{
family: "Lexend Deca",
- load: () => import("@remotion/google-fonts/LexendDeca"),
+ load: () =>
+ import("@remotion/google-fonts/LexendDeca") as Promise<GoogleFont>,
+ },
+ {
+ family: "Libre Barcode 39",
+ load: () =>
+ import("@remotion/google-fonts/LibreBarcode39") as Promise<GoogleFont>,
},
{
family: "Libre Baskerville",
- load: () => import("@remotion/google-fonts/LibreBaskerville"),
+ load: () =>
+ import("@remotion/google-fonts/LibreBaskerville") as Promise<GoogleFont>,
+ },
+ {
+ family: "Libre Caslon Text",
+ load: () =>
+ import("@remotion/google-fonts/LibreCaslonText") as Promise<GoogleFont>,
},
{
family: "Libre Franklin",
- load: () => import("@remotion/google-fonts/LibreFranklin"),
+ load: () =>
+ import("@remotion/google-fonts/LibreFranklin") as Promise<GoogleFont>,
},
{
family: "Lilita One",
- load: () => import("@remotion/google-fonts/LilitaOne"),
+ load: () =>
+ import("@remotion/google-fonts/LilitaOne") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lobster",
+ load: () => import("@remotion/google-fonts/Lobster") as Promise<GoogleFont>,
},
- { family: "Lobster", load: () => import("@remotion/google-fonts/Lobster") },
{
family: "Lobster Two",
- load: () => import("@remotion/google-fonts/LobsterTwo"),
+ load: () =>
+ import("@remotion/google-fonts/LobsterTwo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lora",
+ load: () => import("@remotion/google-fonts/Lora") as Promise<GoogleFont>,
},
- { family: "Lora", load: () => import("@remotion/google-fonts/Lora") },
{
family: "Luckiest Guy",
- load: () => import("@remotion/google-fonts/LuckiestGuy"),
+ load: () =>
+ import("@remotion/google-fonts/LuckiestGuy") as Promise<GoogleFont>,
+ },
+ {
+ family: "M PLUS 1p",
+ load: () => import("@remotion/google-fonts/MPLUS1p") as Promise<GoogleFont>,
},
- { family: "M PLUS 1p", load: () => import("@remotion/google-fonts/MPLUS1p") },
{
family: "M PLUS Rounded 1c",
- load: () => import("@remotion/google-fonts/MPLUSRounded1c"),
+ load: () =>
+ import("@remotion/google-fonts/MPLUSRounded1c") as Promise<GoogleFont>,
+ },
+ {
+ family: "Macondo",
+ load: () => import("@remotion/google-fonts/Macondo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Manrope",
+ load: () => import("@remotion/google-fonts/Manrope") as Promise<GoogleFont>,
},
- { family: "Manrope", load: () => import("@remotion/google-fonts/Manrope") },
{
family: "Marcellus",
- load: () => import("@remotion/google-fonts/Marcellus"),
+ load: () =>
+ import("@remotion/google-fonts/Marcellus") as Promise<GoogleFont>,
},
{
- family: "Marck Script",
- load: () => import("@remotion/google-fonts/MarckScript"),
+ family: "Martel",
+ load: () => import("@remotion/google-fonts/Martel") as Promise<GoogleFont>,
+ },
+ {
+ family: "Mate",
+ load: () => import("@remotion/google-fonts/Mate") as Promise<GoogleFont>,
+ },
+ {
+ family: "Mate SC",
+ load: () => import("@remotion/google-fonts/MateSC") as Promise<GoogleFont>,
},
- { family: "Martel", load: () => import("@remotion/google-fonts/Martel") },
- { family: "Mate", load: () => import("@remotion/google-fonts/Mate") },
- { family: "Mate SC", load: () => import("@remotion/google-fonts/MateSC") },
{
family: "Maven Pro",
- load: () => import("@remotion/google-fonts/MavenPro"),
+ load: () =>
+ import("@remotion/google-fonts/MavenPro") as Promise<GoogleFont>,
+ },
+ {
+ family: "Merienda",
+ load: () =>
+ import("@remotion/google-fonts/Merienda") as Promise<GoogleFont>,
},
{
family: "Merriweather",
- load: () => import("@remotion/google-fonts/Merriweather"),
+ load: () =>
+ import("@remotion/google-fonts/Merriweather") as Promise<GoogleFont>,
},
{
family: "Merriweather Sans",
- load: () => import("@remotion/google-fonts/MerriweatherSans"),
+ load: () =>
+ import("@remotion/google-fonts/MerriweatherSans") as Promise<GoogleFont>,
},
- { family: "Mitr", load: () => import("@remotion/google-fonts/Mitr") },
{
family: "Montserrat",
- load: () => import("@remotion/google-fonts/Montserrat"),
+ load: () =>
+ import("@remotion/google-fonts/Montserrat") as Promise<GoogleFont>,
},
{
family: "Montserrat Alternates",
- load: () => import("@remotion/google-fonts/MontserratAlternates"),
+ load: () =>
+ import(
+ "@remotion/google-fonts/MontserratAlternates"
+ ) as Promise<GoogleFont>,
+ },
+ {
+ family: "Mukta",
+ load: () => import("@remotion/google-fonts/Mukta") as Promise<GoogleFont>,
},
- { family: "Mr Dafoe", load: () => import("@remotion/google-fonts/MrDafoe") },
- { family: "Mukta", load: () => import("@remotion/google-fonts/Mukta") },
{
- family: "Mukta Malar",
- load: () => import("@remotion/google-fonts/MuktaMalar"),
+ family: "Mulish",
+ load: () => import("@remotion/google-fonts/Mulish") as Promise<GoogleFont>,
},
- { family: "Mulish", load: () => import("@remotion/google-fonts/Mulish") },
{
family: "Nanum Gothic",
- load: () => import("@remotion/google-fonts/NanumGothic"),
+ load: () =>
+ import("@remotion/google-fonts/NanumGothic") as Promise<GoogleFont>,
+ },
+ {
+ family: "Nanum Gothic Coding",
+ load: () =>
+ import("@remotion/google-fonts/NanumGothicCoding") as Promise<GoogleFont>,
},
{
family: "Nanum Myeongjo",
- load: () => import("@remotion/google-fonts/NanumMyeongjo"),
+ load: () =>
+ import("@remotion/google-fonts/NanumMyeongjo") as Promise<GoogleFont>,
},
- { family: "Neucha", load: () => import("@remotion/google-fonts/Neucha") },
- { family: "Neuton", load: () => import("@remotion/google-fonts/Neuton") },
{
- family: "News Cycle",
- load: () => import("@remotion/google-fonts/NewsCycle"),
+ family: "Neuton",
+ load: () => import("@remotion/google-fonts/Neuton") as Promise<GoogleFont>,
},
{
family: "Noticia Text",
- load: () => import("@remotion/google-fonts/NoticiaText"),
+ load: () =>
+ import("@remotion/google-fonts/NoticiaText") as Promise<GoogleFont>,
},
{
family: "Noto Color Emoji",
- load: () => import("@remotion/google-fonts/NotoColorEmoji"),
+ load: () =>
+ import("@remotion/google-fonts/NotoColorEmoji") as Promise<GoogleFont>,
},
{
family: "Noto Kufi Arabic",
- load: () => import("@remotion/google-fonts/NotoKufiArabic"),
+ load: () =>
+ import("@remotion/google-fonts/NotoKufiArabic") as Promise<GoogleFont>,
+ },
+ {
+ family: "Noto Naskh Arabic",
+ load: () =>
+ import("@remotion/google-fonts/NotoNaskhArabic") as Promise<GoogleFont>,
},
{
family: "Noto Sans",
- load: () => import("@remotion/google-fonts/NotoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSans") as Promise<GoogleFont>,
},
{
family: "Noto Sans Arabic",
- load: () => import("@remotion/google-fonts/NotoSansArabic"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansArabic") as Promise<GoogleFont>,
+ },
+ {
+ family: "Noto Sans Bengali",
+ load: () =>
+ import("@remotion/google-fonts/NotoSansBengali") as Promise<GoogleFont>,
},
{
family: "Noto Sans Display",
- load: () => import("@remotion/google-fonts/NotoSansDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansDisplay") as Promise<GoogleFont>,
},
{
family: "Noto Sans HK",
- load: () => import("@remotion/google-fonts/NotoSansHK"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansHK") as Promise<GoogleFont>,
},
{
family: "Noto Sans JP",
- load: () => import("@remotion/google-fonts/NotoSansJP"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansJP") as Promise<GoogleFont>,
},
{
family: "Noto Sans KR",
- load: () => import("@remotion/google-fonts/NotoSansKR"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansKR") as Promise<GoogleFont>,
+ },
+ {
+ family: "Noto Sans Mono",
+ load: () =>
+ import("@remotion/google-fonts/NotoSansMono") as Promise<GoogleFont>,
},
{
family: "Noto Sans SC",
- load: () => import("@remotion/google-fonts/NotoSansSC"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansSC") as Promise<GoogleFont>,
},
{
family: "Noto Sans TC",
- load: () => import("@remotion/google-fonts/NotoSansTC"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansTC") as Promise<GoogleFont>,
},
{
family: "Noto Sans Thai",
- load: () => import("@remotion/google-fonts/NotoSansThai"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansThai") as Promise<GoogleFont>,
},
{
family: "Noto Serif",
- load: () => import("@remotion/google-fonts/NotoSerif"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerif") as Promise<GoogleFont>,
},
{
family: "Noto Serif JP",
- load: () => import("@remotion/google-fonts/NotoSerifJP"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerifJP") as Promise<GoogleFont>,
},
{
family: "Noto Serif KR",
- load: () => import("@remotion/google-fonts/NotoSerifKR"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerifKR") as Promise<GoogleFont>,
},
{
family: "Noto Serif TC",
- load: () => import("@remotion/google-fonts/NotoSerifTC"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerifTC") as Promise<GoogleFont>,
+ },
+ {
+ family: "Nunito",
+ load: () => import("@remotion/google-fonts/Nunito") as Promise<GoogleFont>,
},
- { family: "Nunito", load: () => import("@remotion/google-fonts/Nunito") },
{
family: "Nunito Sans",
- load: () => import("@remotion/google-fonts/NunitoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NunitoSans") as Promise<GoogleFont>,
},
{
family: "Old Standard TT",
- load: () => import("@remotion/google-fonts/OldStandardTT"),
+ load: () =>
+ import("@remotion/google-fonts/OldStandardTT") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oleo Script",
+ load: () =>
+ import("@remotion/google-fonts/OleoScript") as Promise<GoogleFont>,
},
{
family: "Open Sans",
- load: () => import("@remotion/google-fonts/OpenSans"),
+ load: () =>
+ import("@remotion/google-fonts/OpenSans") as Promise<GoogleFont>,
+ },
+ {
+ family: "Orbitron",
+ load: () =>
+ import("@remotion/google-fonts/Orbitron") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oswald",
+ load: () => import("@remotion/google-fonts/Oswald") as Promise<GoogleFont>,
+ },
+ {
+ family: "Outfit",
+ load: () => import("@remotion/google-fonts/Outfit") as Promise<GoogleFont>,
+ },
+ {
+ family: "Overpass",
+ load: () =>
+ import("@remotion/google-fonts/Overpass") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oxygen",
+ load: () => import("@remotion/google-fonts/Oxygen") as Promise<GoogleFont>,
+ },
+ {
+ family: "PT Sans",
+ load: () => import("@remotion/google-fonts/PTSans") as Promise<GoogleFont>,
},
- { family: "Orbitron", load: () => import("@remotion/google-fonts/Orbitron") },
- { family: "Oswald", load: () => import("@remotion/google-fonts/Oswald") },
- { family: "Outfit", load: () => import("@remotion/google-fonts/Outfit") },
- { family: "Overpass", load: () => import("@remotion/google-fonts/Overpass") },
- { family: "Oxygen", load: () => import("@remotion/google-fonts/Oxygen") },
- { family: "PT Sans", load: () => import("@remotion/google-fonts/PTSans") },
{
family: "PT Sans Caption",
- load: () => import("@remotion/google-fonts/PTSansCaption"),
+ load: () =>
+ import("@remotion/google-fonts/PTSansCaption") as Promise<GoogleFont>,
},
{
family: "PT Sans Narrow",
- load: () => import("@remotion/google-fonts/PTSansNarrow"),
+ load: () =>
+ import("@remotion/google-fonts/PTSansNarrow") as Promise<GoogleFont>,
},
- { family: "PT Serif", load: () => import("@remotion/google-fonts/PTSerif") },
- { family: "Pacifico", load: () => import("@remotion/google-fonts/Pacifico") },
{
- family: "Passion One",
- load: () => import("@remotion/google-fonts/PassionOne"),
+ family: "PT Serif",
+ load: () => import("@remotion/google-fonts/PTSerif") as Promise<GoogleFont>,
},
{
- family: "Pathway Gothic One",
- load: () => import("@remotion/google-fonts/PathwayGothicOne"),
+ family: "Pacifico",
+ load: () =>
+ import("@remotion/google-fonts/Pacifico") as Promise<GoogleFont>,
},
{
- family: "Patrick Hand",
- load: () => import("@remotion/google-fonts/PatrickHand"),
+ family: "Passion One",
+ load: () =>
+ import("@remotion/google-fonts/PassionOne") as Promise<GoogleFont>,
+ },
+ {
+ family: "Pathway Gothic One",
+ load: () =>
+ import("@remotion/google-fonts/PathwayGothicOne") as Promise<GoogleFont>,
},
{
family: "Patua One",
- load: () => import("@remotion/google-fonts/PatuaOne"),
+ load: () =>
+ import("@remotion/google-fonts/PatuaOne") as Promise<GoogleFont>,
},
{
family: "Paytone One",
- load: () => import("@remotion/google-fonts/PaytoneOne"),
+ load: () =>
+ import("@remotion/google-fonts/PaytoneOne") as Promise<GoogleFont>,
},
{
family: "Permanent Marker",
- load: () => import("@remotion/google-fonts/PermanentMarker"),
+ load: () =>
+ import("@remotion/google-fonts/PermanentMarker") as Promise<GoogleFont>,
},
{
family: "Philosopher",
- load: () => import("@remotion/google-fonts/Philosopher"),
+ load: () =>
+ import("@remotion/google-fonts/Philosopher") as Promise<GoogleFont>,
},
- { family: "Play", load: () => import("@remotion/google-fonts/Play") },
{
- family: "Playfair Display",
- load: () => import("@remotion/google-fonts/PlayfairDisplay"),
+ family: "Play",
+ load: () => import("@remotion/google-fonts/Play") as Promise<GoogleFont>,
},
{
- family: "Playfair Display SC",
- load: () => import("@remotion/google-fonts/PlayfairDisplaySC"),
+ family: "Playfair Display",
+ load: () =>
+ import("@remotion/google-fonts/PlayfairDisplay") as Promise<GoogleFont>,
},
{
family: "Plus Jakarta Sans",
- load: () => import("@remotion/google-fonts/PlusJakartaSans"),
+ load: () =>
+ import("@remotion/google-fonts/PlusJakartaSans") as Promise<GoogleFont>,
},
{
- family: "Poiret One",
- load: () => import("@remotion/google-fonts/PoiretOne"),
+ family: "Poppins",
+ load: () => import("@remotion/google-fonts/Poppins") as Promise<GoogleFont>,
},
- { family: "Poppins", load: () => import("@remotion/google-fonts/Poppins") },
- { family: "Prata", load: () => import("@remotion/google-fonts/Prata") },
{
- family: "Press Start 2P",
- load: () => import("@remotion/google-fonts/PressStart2P"),
+ family: "Prata",
+ load: () => import("@remotion/google-fonts/Prata") as Promise<GoogleFont>,
+ },
+ {
+ family: "Prompt",
+ load: () => import("@remotion/google-fonts/Prompt") as Promise<GoogleFont>,
},
- { family: "Prompt", load: () => import("@remotion/google-fonts/Prompt") },
{
family: "Public Sans",
- load: () => import("@remotion/google-fonts/PublicSans"),
+ load: () =>
+ import("@remotion/google-fonts/PublicSans") as Promise<GoogleFont>,
},
{
family: "Quattrocento",
- load: () => import("@remotion/google-fonts/Quattrocento"),
+ load: () =>
+ import("@remotion/google-fonts/Quattrocento") as Promise<GoogleFont>,
},
{
family: "Quattrocento Sans",
- load: () => import("@remotion/google-fonts/QuattrocentoSans"),
+ load: () =>
+ import("@remotion/google-fonts/QuattrocentoSans") as Promise<GoogleFont>,
},
{
family: "Questrial",
- load: () => import("@remotion/google-fonts/Questrial"),
+ load: () =>
+ import("@remotion/google-fonts/Questrial") as Promise<GoogleFont>,
},
{
family: "Quicksand",
- load: () => import("@remotion/google-fonts/Quicksand"),
+ load: () =>
+ import("@remotion/google-fonts/Quicksand") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rajdhani",
+ load: () =>
+ import("@remotion/google-fonts/Rajdhani") as Promise<GoogleFont>,
+ },
+ {
+ family: "Raleway",
+ load: () => import("@remotion/google-fonts/Raleway") as Promise<GoogleFont>,
+ },
+ {
+ family: "Readex Pro",
+ load: () =>
+ import("@remotion/google-fonts/ReadexPro") as Promise<GoogleFont>,
},
- { family: "Rajdhani", load: () => import("@remotion/google-fonts/Rajdhani") },
- { family: "Raleway", load: () => import("@remotion/google-fonts/Raleway") },
{
family: "Red Hat Display",
- load: () => import("@remotion/google-fonts/RedHatDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/RedHatDisplay") as Promise<GoogleFont>,
},
{
family: "Righteous",
- load: () => import("@remotion/google-fonts/Righteous"),
+ load: () =>
+ import("@remotion/google-fonts/Righteous") as Promise<GoogleFont>,
+ },
+ {
+ family: "Roboto",
+ load: () => import("@remotion/google-fonts/Roboto") as Promise<GoogleFont>,
},
- { family: "Roboto", load: () => import("@remotion/google-fonts/Roboto") },
{
family: "Roboto Condensed",
- load: () => import("@remotion/google-fonts/RobotoCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoCondensed") as Promise<GoogleFont>,
},
{
family: "Roboto Flex",
- load: () => import("@remotion/google-fonts/RobotoFlex"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoFlex") as Promise<GoogleFont>,
},
{
family: "Roboto Mono",
- load: () => import("@remotion/google-fonts/RobotoMono"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoMono") as Promise<GoogleFont>,
},
{
family: "Roboto Serif",
- load: () => import("@remotion/google-fonts/RobotoSerif"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoSerif") as Promise<GoogleFont>,
},
{
family: "Roboto Slab",
- load: () => import("@remotion/google-fonts/RobotoSlab"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoSlab") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rokkitt",
+ load: () => import("@remotion/google-fonts/Rokkitt") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rowdies",
+ load: () => import("@remotion/google-fonts/Rowdies") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rubik",
+ load: () => import("@remotion/google-fonts/Rubik") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rubik Bubbles",
+ load: () =>
+ import("@remotion/google-fonts/RubikBubbles") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rubik Mono One",
+ load: () =>
+ import("@remotion/google-fonts/RubikMonoOne") as Promise<GoogleFont>,
},
- { family: "Rokkitt", load: () => import("@remotion/google-fonts/Rokkitt") },
- { family: "Rowdies", load: () => import("@remotion/google-fonts/Rowdies") },
- { family: "Rubik", load: () => import("@remotion/google-fonts/Rubik") },
{
family: "Russo One",
- load: () => import("@remotion/google-fonts/RussoOne"),
+ load: () =>
+ import("@remotion/google-fonts/RussoOne") as Promise<GoogleFont>,
},
{
family: "Sacramento",
- load: () => import("@remotion/google-fonts/Sacramento"),
+ load: () =>
+ import("@remotion/google-fonts/Sacramento") as Promise<GoogleFont>,
+ },
+ {
+ family: "Saira",
+ load: () => import("@remotion/google-fonts/Saira") as Promise<GoogleFont>,
},
- { family: "Saira", load: () => import("@remotion/google-fonts/Saira") },
{
family: "Saira Condensed",
- load: () => import("@remotion/google-fonts/SairaCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/SairaCondensed") as Promise<GoogleFont>,
+ },
+ {
+ family: "Sarabun",
+ load: () => import("@remotion/google-fonts/Sarabun") as Promise<GoogleFont>,
+ },
+ {
+ family: "Satisfy",
+ load: () => import("@remotion/google-fonts/Satisfy") as Promise<GoogleFont>,
},
- { family: "Sanchez", load: () => import("@remotion/google-fonts/Sanchez") },
- { family: "Sarabun", load: () => import("@remotion/google-fonts/Sarabun") },
- { family: "Satisfy", load: () => import("@remotion/google-fonts/Satisfy") },
{
family: "Sawarabi Gothic",
- load: () => import("@remotion/google-fonts/SawarabiGothic"),
+ load: () =>
+ import("@remotion/google-fonts/SawarabiGothic") as Promise<GoogleFont>,
},
{
family: "Sawarabi Mincho",
- load: () => import("@remotion/google-fonts/SawarabiMincho"),
+ load: () =>
+ import("@remotion/google-fonts/SawarabiMincho") as Promise<GoogleFont>,
},
{
- family: "Secular One",
- load: () => import("@remotion/google-fonts/SecularOne"),
+ family: "Sen",
+ load: () => import("@remotion/google-fonts/Sen") as Promise<GoogleFont>,
},
- { family: "Sen", load: () => import("@remotion/google-fonts/Sen") },
{
family: "Shadows Into Light",
- load: () => import("@remotion/google-fonts/ShadowsIntoLight"),
+ load: () =>
+ import("@remotion/google-fonts/ShadowsIntoLight") as Promise<GoogleFont>,
+ },
+ {
+ family: "Signika",
+ load: () => import("@remotion/google-fonts/Signika") as Promise<GoogleFont>,
},
- { family: "Signika", load: () => import("@remotion/google-fonts/Signika") },
{
family: "Signika Negative",
- load: () => import("@remotion/google-fonts/SignikaNegative"),
+ load: () =>
+ import("@remotion/google-fonts/SignikaNegative") as Promise<GoogleFont>,
+ },
+ {
+ family: "Silkscreen",
+ load: () =>
+ import("@remotion/google-fonts/Silkscreen") as Promise<GoogleFont>,
+ },
+ {
+ family: "Six Caps",
+ load: () => import("@remotion/google-fonts/SixCaps") as Promise<GoogleFont>,
},
{
family: "Slabo 27px",
- load: () => import("@remotion/google-fonts/Slabo27px"),
+ load: () =>
+ import("@remotion/google-fonts/Slabo27px") as Promise<GoogleFont>,
+ },
+ {
+ family: "Sora",
+ load: () => import("@remotion/google-fonts/Sora") as Promise<GoogleFont>,
},
- { family: "Sora", load: () => import("@remotion/google-fonts/Sora") },
{
family: "Source Code Pro",
- load: () => import("@remotion/google-fonts/SourceCodePro"),
+ load: () =>
+ import("@remotion/google-fonts/SourceCodePro") as Promise<GoogleFont>,
+ },
+ {
+ family: "Source Sans 3",
+ load: () =>
+ import("@remotion/google-fonts/SourceSans3") as Promise<GoogleFont>,
},
{
family: "Source Serif 4",
- load: () => import("@remotion/google-fonts/SourceSerif4"),
+ load: () =>
+ import("@remotion/google-fonts/SourceSerif4") as Promise<GoogleFont>,
},
{
family: "Space Grotesk",
- load: () => import("@remotion/google-fonts/SpaceGrotesk"),
+ load: () =>
+ import("@remotion/google-fonts/SpaceGrotesk") as Promise<GoogleFont>,
},
{
family: "Space Mono",
- load: () => import("@remotion/google-fonts/SpaceMono"),
+ load: () =>
+ import("@remotion/google-fonts/SpaceMono") as Promise<GoogleFont>,
},
{
family: "Special Elite",
- load: () => import("@remotion/google-fonts/SpecialElite"),
+ load: () =>
+ import("@remotion/google-fonts/SpecialElite") as Promise<GoogleFont>,
},
- { family: "Spectral", load: () => import("@remotion/google-fonts/Spectral") },
{
- family: "Staatliches",
- load: () => import("@remotion/google-fonts/Staatliches"),
+ family: "Spectral",
+ load: () =>
+ import("@remotion/google-fonts/Spectral") as Promise<GoogleFont>,
},
- { family: "Tajawal", load: () => import("@remotion/google-fonts/Tajawal") },
- { family: "Teko", load: () => import("@remotion/google-fonts/Teko") },
{
- family: "Tenor Sans",
- load: () => import("@remotion/google-fonts/TenorSans"),
+ family: "Tajawal",
+ load: () => import("@remotion/google-fonts/Tajawal") as Promise<GoogleFont>,
+ },
+ {
+ family: "Tangerine",
+ load: () =>
+ import("@remotion/google-fonts/Tangerine") as Promise<GoogleFont>,
+ },
+ {
+ family: "Teko",
+ load: () => import("@remotion/google-fonts/Teko") as Promise<GoogleFont>,
+ },
+ {
+ family: "Tinos",
+ load: () => import("@remotion/google-fonts/Tinos") as Promise<GoogleFont>,
+ },
+ {
+ family: "Titan One",
+ load: () =>
+ import("@remotion/google-fonts/TitanOne") as Promise<GoogleFont>,
},
- { family: "Tinos", load: () => import("@remotion/google-fonts/Tinos") },
{
family: "Titillium Web",
- load: () => import("@remotion/google-fonts/TitilliumWeb"),
+ load: () =>
+ import("@remotion/google-fonts/TitilliumWeb") as Promise<GoogleFont>,
+ },
+ {
+ family: "Ubuntu",
+ load: () => import("@remotion/google-fonts/Ubuntu") as Promise<GoogleFont>,
},
- { family: "Ubuntu", load: () => import("@remotion/google-fonts/Ubuntu") },
{
family: "Ubuntu Condensed",
- load: () => import("@remotion/google-fonts/UbuntuCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/UbuntuCondensed") as Promise<GoogleFont>,
},
{
family: "Ubuntu Mono",
- load: () => import("@remotion/google-fonts/UbuntuMono"),
+ load: () =>
+ import("@remotion/google-fonts/UbuntuMono") as Promise<GoogleFont>,
},
- { family: "Ultra", load: () => import("@remotion/google-fonts/Ultra") },
{
family: "Unbounded",
- load: () => import("@remotion/google-fonts/Unbounded"),
+ load: () =>
+ import("@remotion/google-fonts/Unbounded") as Promise<GoogleFont>,
+ },
+ {
+ family: "Unna",
+ load: () => import("@remotion/google-fonts/Unna") as Promise<GoogleFont>,
+ },
+ {
+ family: "Urbanist",
+ load: () =>
+ import("@remotion/google-fonts/Urbanist") as Promise<GoogleFont>,
},
- { family: "Unna", load: () => import("@remotion/google-fonts/Unna") },
- { family: "Urbanist", load: () => import("@remotion/google-fonts/Urbanist") },
{
family: "Varela Round",
- load: () => import("@remotion/google-fonts/VarelaRound"),
+ load: () =>
+ import("@remotion/google-fonts/VarelaRound") as Promise<GoogleFont>,
+ },
+ {
+ family: "Vollkorn",
+ load: () =>
+ import("@remotion/google-fonts/Vollkorn") as Promise<GoogleFont>,
},
- { family: "Vidaloka", load: () => import("@remotion/google-fonts/Vidaloka") },
- { family: "Viga", load: () => import("@remotion/google-fonts/Viga") },
- { family: "Vollkorn", load: () => import("@remotion/google-fonts/Vollkorn") },
{
family: "Work Sans",
- load: () => import("@remotion/google-fonts/WorkSans"),
+ load: () =>
+ import("@remotion/google-fonts/WorkSans") as Promise<GoogleFont>,
},
{
family: "Yanone Kaffeesatz",
- load: () => import("@remotion/google-fonts/YanoneKaffeesatz"),
+ load: () =>
+ import("@remotion/google-fonts/YanoneKaffeesatz") as Promise<GoogleFont>,
},
{
family: "Yantramanav",
- load: () => import("@remotion/google-fonts/Yantramanav"),
+ load: () =>
+ import("@remotion/google-fonts/Yantramanav") as Promise<GoogleFont>,
},
{
family: "Yellowtail",
- load: () => import("@remotion/google-fonts/Yellowtail"),
+ load: () =>
+ import("@remotion/google-fonts/Yellowtail") as Promise<GoogleFont>,
},
{
family: "Yeseva One",
- load: () => import("@remotion/google-fonts/YesevaOne"),
+ load: () =>
+ import("@remotion/google-fonts/YesevaOne") as Promise<GoogleFont>,
+ },
+ {
+ family: "Zen Kaku Gothic New",
+ load: () =>
+ import("@remotion/google-fonts/ZenKakuGothicNew") as Promise<GoogleFont>,
+ },
+ {
+ family: "Zeyada",
+ load: () => import("@remotion/google-fonts/Zeyada") as Promise<GoogleFont>,
},
- { family: "Zeyada", load: () => import("@remotion/google-fonts/Zeyada") },
{
family: "Zilla Slab",
- load: () => import("@remotion/google-fonts/ZillaSlab"),
+ load: () =>
+ import("@remotion/google-fonts/ZillaSlab") as Promise<GoogleFont>,
},
];
```
@@ -788,280 +1267,468 @@ export const top250 = [
To reduce bundle size, you can limit the selection. Instead of calling `getAvailableFonts()`, create a file with the following contents and use it as the fonts array:
```ts twoslash
+import type { GoogleFont } from "@remotion/google-fonts";
+
export const top100 = [
- { family: "Abel", load: () => import("@remotion/google-fonts/Abel") },
{
- family: "Abril Fatface",
- load: () => import("@remotion/google-fonts/AbrilFatface"),
+ family: "Abel",
+ load: () => import("@remotion/google-fonts/Abel") as Promise<GoogleFont>,
},
- { family: "Anton", load: () => import("@remotion/google-fonts/Anton") },
- { family: "Archivo", load: () => import("@remotion/google-fonts/Archivo") },
- { family: "Arimo", load: () => import("@remotion/google-fonts/Arimo") },
- { family: "Arvo", load: () => import("@remotion/google-fonts/Arvo") },
- { family: "Asap", load: () => import("@remotion/google-fonts/Asap") },
{
- family: "Asap Condensed",
- load: () => import("@remotion/google-fonts/AsapCondensed"),
+ family: "Anton",
+ load: () => import("@remotion/google-fonts/Anton") as Promise<GoogleFont>,
+ },
+ {
+ family: "Archivo",
+ load: () => import("@remotion/google-fonts/Archivo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Arimo",
+ load: () => import("@remotion/google-fonts/Arimo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Arvo",
+ load: () => import("@remotion/google-fonts/Arvo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Asap",
+ load: () => import("@remotion/google-fonts/Asap") as Promise<GoogleFont>,
},
{
family: "Assistant",
- load: () => import("@remotion/google-fonts/Assistant"),
+ load: () =>
+ import("@remotion/google-fonts/Assistant") as Promise<GoogleFont>,
+ },
+ {
+ family: "Barlow",
+ load: () => import("@remotion/google-fonts/Barlow") as Promise<GoogleFont>,
},
- { family: "Barlow", load: () => import("@remotion/google-fonts/Barlow") },
{
family: "Barlow Condensed",
- load: () => import("@remotion/google-fonts/BarlowCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/BarlowCondensed") as Promise<GoogleFont>,
+ },
+ {
+ family: "Barlow Semi Condensed",
+ load: () =>
+ import(
+ "@remotion/google-fonts/BarlowSemiCondensed"
+ ) as Promise<GoogleFont>,
},
{
family: "Bebas Neue",
- load: () => import("@remotion/google-fonts/BebasNeue"),
+ load: () =>
+ import("@remotion/google-fonts/BebasNeue") as Promise<GoogleFont>,
},
- { family: "Bitter", load: () => import("@remotion/google-fonts/Bitter") },
- { family: "Cabin", load: () => import("@remotion/google-fonts/Cabin") },
- { family: "Cairo", load: () => import("@remotion/google-fonts/Cairo") },
{
- family: "Catamaran",
- load: () => import("@remotion/google-fonts/Catamaran"),
+ family: "Bitter",
+ load: () => import("@remotion/google-fonts/Bitter") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cabin",
+ load: () => import("@remotion/google-fonts/Cabin") as Promise<GoogleFont>,
+ },
+ {
+ family: "Cairo",
+ load: () => import("@remotion/google-fonts/Cairo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Caveat",
+ load: () => import("@remotion/google-fonts/Caveat") as Promise<GoogleFont>,
+ },
+ {
+ family: "Chakra Petch",
+ load: () =>
+ import("@remotion/google-fonts/ChakraPetch") as Promise<GoogleFont>,
},
- { family: "Caveat", load: () => import("@remotion/google-fonts/Caveat") },
{
family: "Comfortaa",
- load: () => import("@remotion/google-fonts/Comfortaa"),
+ load: () =>
+ import("@remotion/google-fonts/Comfortaa") as Promise<GoogleFont>,
},
{
family: "Cormorant Garamond",
- load: () => import("@remotion/google-fonts/CormorantGaramond"),
+ load: () =>
+ import("@remotion/google-fonts/CormorantGaramond") as Promise<GoogleFont>,
},
{
family: "Crimson Text",
- load: () => import("@remotion/google-fonts/CrimsonText"),
+ load: () =>
+ import("@remotion/google-fonts/CrimsonText") as Promise<GoogleFont>,
+ },
+ {
+ family: "DM Sans",
+ load: () => import("@remotion/google-fonts/DMSans") as Promise<GoogleFont>,
},
- { family: "DM Sans", load: () => import("@remotion/google-fonts/DMSans") },
{
family: "Dancing Script",
- load: () => import("@remotion/google-fonts/DancingScript"),
+ load: () =>
+ import("@remotion/google-fonts/DancingScript") as Promise<GoogleFont>,
+ },
+ {
+ family: "Dosis",
+ load: () => import("@remotion/google-fonts/Dosis") as Promise<GoogleFont>,
},
- { family: "Dosis", load: () => import("@remotion/google-fonts/Dosis") },
{
family: "EB Garamond",
- load: () => import("@remotion/google-fonts/EBGaramond"),
+ load: () =>
+ import("@remotion/google-fonts/EBGaramond") as Promise<GoogleFont>,
+ },
+ {
+ family: "Exo 2",
+ load: () => import("@remotion/google-fonts/Exo2") as Promise<GoogleFont>,
+ },
+ {
+ family: "Figtree",
+ load: () => import("@remotion/google-fonts/Figtree") as Promise<GoogleFont>,
},
- { family: "Exo 2", load: () => import("@remotion/google-fonts/Exo2") },
{
family: "Fira Sans",
- load: () => import("@remotion/google-fonts/FiraSans"),
+ load: () =>
+ import("@remotion/google-fonts/FiraSans") as Promise<GoogleFont>,
},
{
family: "Fira Sans Condensed",
- load: () => import("@remotion/google-fonts/FiraSansCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/FiraSansCondensed") as Promise<GoogleFont>,
},
{
family: "Fjalla One",
- load: () => import("@remotion/google-fonts/FjallaOne"),
+ load: () =>
+ import("@remotion/google-fonts/FjallaOne") as Promise<GoogleFont>,
},
- { family: "Heebo", load: () => import("@remotion/google-fonts/Heebo") },
- { family: "Hind", load: () => import("@remotion/google-fonts/Hind") },
{
- family: "Hind Madurai",
- load: () => import("@remotion/google-fonts/HindMadurai"),
+ family: "Heebo",
+ load: () => import("@remotion/google-fonts/Heebo") as Promise<GoogleFont>,
+ },
+ {
+ family: "Hind",
+ load: () => import("@remotion/google-fonts/Hind") as Promise<GoogleFont>,
},
{
family: "Hind Siliguri",
- load: () => import("@remotion/google-fonts/HindSiliguri"),
+ load: () =>
+ import("@remotion/google-fonts/HindSiliguri") as Promise<GoogleFont>,
},
{
family: "IBM Plex Mono",
- load: () => import("@remotion/google-fonts/IBMPlexMono"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexMono") as Promise<GoogleFont>,
},
{
family: "IBM Plex Sans",
- load: () => import("@remotion/google-fonts/IBMPlexSans"),
+ load: () =>
+ import("@remotion/google-fonts/IBMPlexSans") as Promise<GoogleFont>,
},
{
family: "Inconsolata",
- load: () => import("@remotion/google-fonts/Inconsolata"),
+ load: () =>
+ import("@remotion/google-fonts/Inconsolata") as Promise<GoogleFont>,
+ },
+ {
+ family: "Inter",
+ load: () => import("@remotion/google-fonts/Inter") as Promise<GoogleFont>,
},
- { family: "Inter", load: () => import("@remotion/google-fonts/Inter") },
{
family: "Josefin Sans",
- load: () => import("@remotion/google-fonts/JosefinSans"),
+ load: () =>
+ import("@remotion/google-fonts/JosefinSans") as Promise<GoogleFont>,
+ },
+ {
+ family: "Jost",
+ load: () => import("@remotion/google-fonts/Jost") as Promise<GoogleFont>,
+ },
+ {
+ family: "Kanit",
+ load: () => import("@remotion/google-fonts/Kanit") as Promise<GoogleFont>,
+ },
+ {
+ family: "Karla",
+ load: () => import("@remotion/google-fonts/Karla") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lato",
+ load: () => import("@remotion/google-fonts/Lato") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lexend",
+ load: () => import("@remotion/google-fonts/Lexend") as Promise<GoogleFont>,
},
- { family: "Jost", load: () => import("@remotion/google-fonts/Jost") },
- { family: "Kanit", load: () => import("@remotion/google-fonts/Kanit") },
- { family: "Karla", load: () => import("@remotion/google-fonts/Karla") },
- { family: "Lato", load: () => import("@remotion/google-fonts/Lato") },
{
family: "Libre Baskerville",
- load: () => import("@remotion/google-fonts/LibreBaskerville"),
+ load: () =>
+ import("@remotion/google-fonts/LibreBaskerville") as Promise<GoogleFont>,
},
{
family: "Libre Franklin",
- load: () => import("@remotion/google-fonts/LibreFranklin"),
+ load: () =>
+ import("@remotion/google-fonts/LibreFranklin") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lobster",
+ load: () => import("@remotion/google-fonts/Lobster") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lora",
+ load: () => import("@remotion/google-fonts/Lora") as Promise<GoogleFont>,
},
- { family: "Lobster", load: () => import("@remotion/google-fonts/Lobster") },
- { family: "Lora", load: () => import("@remotion/google-fonts/Lora") },
{
family: "M PLUS Rounded 1c",
- load: () => import("@remotion/google-fonts/MPLUSRounded1c"),
+ load: () =>
+ import("@remotion/google-fonts/MPLUSRounded1c") as Promise<GoogleFont>,
+ },
+ {
+ family: "Manrope",
+ load: () => import("@remotion/google-fonts/Manrope") as Promise<GoogleFont>,
},
- { family: "Manrope", load: () => import("@remotion/google-fonts/Manrope") },
{
family: "Maven Pro",
- load: () => import("@remotion/google-fonts/MavenPro"),
+ load: () =>
+ import("@remotion/google-fonts/MavenPro") as Promise<GoogleFont>,
},
{
family: "Merriweather",
- load: () => import("@remotion/google-fonts/Merriweather"),
+ load: () =>
+ import("@remotion/google-fonts/Merriweather") as Promise<GoogleFont>,
},
{
- family: "Merriweather Sans",
- load: () => import("@remotion/google-fonts/MerriweatherSans"),
+ family: "Montserrat",
+ load: () =>
+ import("@remotion/google-fonts/Montserrat") as Promise<GoogleFont>,
},
{
- family: "Montserrat",
- load: () => import("@remotion/google-fonts/Montserrat"),
+ family: "Mukta",
+ load: () => import("@remotion/google-fonts/Mukta") as Promise<GoogleFont>,
+ },
+ {
+ family: "Mulish",
+ load: () => import("@remotion/google-fonts/Mulish") as Promise<GoogleFont>,
},
- { family: "Mukta", load: () => import("@remotion/google-fonts/Mukta") },
- { family: "Mulish", load: () => import("@remotion/google-fonts/Mulish") },
{
family: "Nanum Gothic",
- load: () => import("@remotion/google-fonts/NanumGothic"),
+ load: () =>
+ import("@remotion/google-fonts/NanumGothic") as Promise<GoogleFont>,
},
{
family: "Noto Color Emoji",
- load: () => import("@remotion/google-fonts/NotoColorEmoji"),
+ load: () =>
+ import("@remotion/google-fonts/NotoColorEmoji") as Promise<GoogleFont>,
},
{
family: "Noto Sans",
- load: () => import("@remotion/google-fonts/NotoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSans") as Promise<GoogleFont>,
},
{
family: "Noto Sans Arabic",
- load: () => import("@remotion/google-fonts/NotoSansArabic"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansArabic") as Promise<GoogleFont>,
+ },
+ {
+ family: "Noto Sans HK",
+ load: () =>
+ import("@remotion/google-fonts/NotoSansHK") as Promise<GoogleFont>,
},
{
family: "Noto Sans JP",
- load: () => import("@remotion/google-fonts/NotoSansJP"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansJP") as Promise<GoogleFont>,
},
{
family: "Noto Sans KR",
- load: () => import("@remotion/google-fonts/NotoSansKR"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansKR") as Promise<GoogleFont>,
},
{
family: "Noto Sans SC",
- load: () => import("@remotion/google-fonts/NotoSansSC"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansSC") as Promise<GoogleFont>,
},
{
family: "Noto Sans TC",
- load: () => import("@remotion/google-fonts/NotoSansTC"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansTC") as Promise<GoogleFont>,
},
{
family: "Noto Serif",
- load: () => import("@remotion/google-fonts/NotoSerif"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerif") as Promise<GoogleFont>,
},
{
family: "Noto Serif JP",
- load: () => import("@remotion/google-fonts/NotoSerifJP"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSerifJP") as Promise<GoogleFont>,
+ },
+ {
+ family: "Nunito",
+ load: () => import("@remotion/google-fonts/Nunito") as Promise<GoogleFont>,
},
- { family: "Nunito", load: () => import("@remotion/google-fonts/Nunito") },
{
family: "Nunito Sans",
- load: () => import("@remotion/google-fonts/NunitoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NunitoSans") as Promise<GoogleFont>,
},
{
family: "Open Sans",
- load: () => import("@remotion/google-fonts/OpenSans"),
+ load: () =>
+ import("@remotion/google-fonts/OpenSans") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oswald",
+ load: () => import("@remotion/google-fonts/Oswald") as Promise<GoogleFont>,
+ },
+ {
+ family: "Outfit",
+ load: () => import("@remotion/google-fonts/Outfit") as Promise<GoogleFont>,
+ },
+ {
+ family: "Overpass",
+ load: () =>
+ import("@remotion/google-fonts/Overpass") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oxygen",
+ load: () => import("@remotion/google-fonts/Oxygen") as Promise<GoogleFont>,
+ },
+ {
+ family: "PT Sans",
+ load: () => import("@remotion/google-fonts/PTSans") as Promise<GoogleFont>,
},
- { family: "Oswald", load: () => import("@remotion/google-fonts/Oswald") },
- { family: "Overpass", load: () => import("@remotion/google-fonts/Overpass") },
- { family: "Oxygen", load: () => import("@remotion/google-fonts/Oxygen") },
- { family: "PT Sans", load: () => import("@remotion/google-fonts/PTSans") },
{
family: "PT Sans Narrow",
- load: () => import("@remotion/google-fonts/PTSansNarrow"),
+ load: () =>
+ import("@remotion/google-fonts/PTSansNarrow") as Promise<GoogleFont>,
+ },
+ {
+ family: "PT Serif",
+ load: () => import("@remotion/google-fonts/PTSerif") as Promise<GoogleFont>,
+ },
+ {
+ family: "Pacifico",
+ load: () =>
+ import("@remotion/google-fonts/Pacifico") as Promise<GoogleFont>,
+ },
+ {
+ family: "Play",
+ load: () => import("@remotion/google-fonts/Play") as Promise<GoogleFont>,
},
- { family: "PT Serif", load: () => import("@remotion/google-fonts/PTSerif") },
- { family: "Pacifico", load: () => import("@remotion/google-fonts/Pacifico") },
{
family: "Playfair Display",
- load: () => import("@remotion/google-fonts/PlayfairDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/PlayfairDisplay") as Promise<GoogleFont>,
+ },
+ {
+ family: "Poppins",
+ load: () => import("@remotion/google-fonts/Poppins") as Promise<GoogleFont>,
+ },
+ {
+ family: "Prompt",
+ load: () => import("@remotion/google-fonts/Prompt") as Promise<GoogleFont>,
},
- { family: "Poppins", load: () => import("@remotion/google-fonts/Poppins") },
- { family: "Prompt", load: () => import("@remotion/google-fonts/Prompt") },
{
family: "Public Sans",
- load: () => import("@remotion/google-fonts/PublicSans"),
+ load: () =>
+ import("@remotion/google-fonts/PublicSans") as Promise<GoogleFont>,
},
{
family: "Quicksand",
- load: () => import("@remotion/google-fonts/Quicksand"),
+ load: () =>
+ import("@remotion/google-fonts/Quicksand") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rajdhani",
+ load: () =>
+ import("@remotion/google-fonts/Rajdhani") as Promise<GoogleFont>,
+ },
+ {
+ family: "Raleway",
+ load: () => import("@remotion/google-fonts/Raleway") as Promise<GoogleFont>,
},
- { family: "Rajdhani", load: () => import("@remotion/google-fonts/Rajdhani") },
- { family: "Raleway", load: () => import("@remotion/google-fonts/Raleway") },
{
family: "Red Hat Display",
- load: () => import("@remotion/google-fonts/RedHatDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/RedHatDisplay") as Promise<GoogleFont>,
},
{
- family: "Righteous",
- load: () => import("@remotion/google-fonts/Righteous"),
+ family: "Roboto",
+ load: () => import("@remotion/google-fonts/Roboto") as Promise<GoogleFont>,
},
- { family: "Roboto", load: () => import("@remotion/google-fonts/Roboto") },
{
family: "Roboto Condensed",
- load: () => import("@remotion/google-fonts/RobotoCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoCondensed") as Promise<GoogleFont>,
},
{
family: "Roboto Mono",
- load: () => import("@remotion/google-fonts/RobotoMono"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoMono") as Promise<GoogleFont>,
},
{
family: "Roboto Slab",
- load: () => import("@remotion/google-fonts/RobotoSlab"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoSlab") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rubik",
+ load: () => import("@remotion/google-fonts/Rubik") as Promise<GoogleFont>,
},
- { family: "Rubik", load: () => import("@remotion/google-fonts/Rubik") },
{
family: "Shadows Into Light",
- load: () => import("@remotion/google-fonts/ShadowsIntoLight"),
+ load: () =>
+ import("@remotion/google-fonts/ShadowsIntoLight") as Promise<GoogleFont>,
},
{
family: "Signika Negative",
- load: () => import("@remotion/google-fonts/SignikaNegative"),
+ load: () =>
+ import("@remotion/google-fonts/SignikaNegative") as Promise<GoogleFont>,
},
{
family: "Slabo 27px",
- load: () => import("@remotion/google-fonts/Slabo27px"),
+ load: () =>
+ import("@remotion/google-fonts/Slabo27px") as Promise<GoogleFont>,
},
{
family: "Source Code Pro",
- load: () => import("@remotion/google-fonts/SourceCodePro"),
+ load: () =>
+ import("@remotion/google-fonts/SourceCodePro") as Promise<GoogleFont>,
+ },
+ {
+ family: "Source Sans 3",
+ load: () =>
+ import("@remotion/google-fonts/SourceSans3") as Promise<GoogleFont>,
},
{
family: "Space Grotesk",
- load: () => import("@remotion/google-fonts/SpaceGrotesk"),
+ load: () =>
+ import("@remotion/google-fonts/SpaceGrotesk") as Promise<GoogleFont>,
+ },
+ {
+ family: "Teko",
+ load: () => import("@remotion/google-fonts/Teko") as Promise<GoogleFont>,
},
- { family: "Tajawal", load: () => import("@remotion/google-fonts/Tajawal") },
- { family: "Teko", load: () => import("@remotion/google-fonts/Teko") },
{
family: "Titillium Web",
- load: () => import("@remotion/google-fonts/TitilliumWeb"),
+ load: () =>
+ import("@remotion/google-fonts/TitilliumWeb") as Promise<GoogleFont>,
},
- { family: "Ubuntu", load: () => import("@remotion/google-fonts/Ubuntu") },
{
- family: "Varela Round",
- load: () => import("@remotion/google-fonts/VarelaRound"),
+ family: "Ubuntu",
+ load: () => import("@remotion/google-fonts/Ubuntu") as Promise<GoogleFont>,
},
{
- family: "Work Sans",
- load: () => import("@remotion/google-fonts/WorkSans"),
+ family: "Varela Round",
+ load: () =>
+ import("@remotion/google-fonts/VarelaRound") as Promise<GoogleFont>,
},
{
- family: "Yanone Kaffeesatz",
- load: () => import("@remotion/google-fonts/YanoneKaffeesatz"),
+ family: "Work Sans",
+ load: () =>
+ import("@remotion/google-fonts/WorkSans") as Promise<GoogleFont>,
},
{
family: "Zilla Slab",
- load: () => import("@remotion/google-fonts/ZillaSlab"),
+ load: () =>
+ import("@remotion/google-fonts/ZillaSlab") as Promise<GoogleFont>,
},
];
```
@@ -1071,67 +1738,121 @@ export const top100 = [
To reduce bundle size, you can limit the selection. Instead of calling `getAvailableFonts()`, create a file with the following contents and use it as the fonts array:
```ts twoslash
+import type { GoogleFont } from "@remotion/google-fonts";
+
export const top25 = [
- { family: "Inter", load: () => import("@remotion/google-fonts/Inter") },
- { family: "Kanit", load: () => import("@remotion/google-fonts/Kanit") },
- { family: "Lato", load: () => import("@remotion/google-fonts/Lato") },
- { family: "Lora", load: () => import("@remotion/google-fonts/Lora") },
+ {
+ family: "Inter",
+ load: () => import("@remotion/google-fonts/Inter") as Promise<GoogleFont>,
+ },
+ {
+ family: "Kanit",
+ load: () => import("@remotion/google-fonts/Kanit") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lato",
+ load: () => import("@remotion/google-fonts/Lato") as Promise<GoogleFont>,
+ },
+ {
+ family: "Lora",
+ load: () => import("@remotion/google-fonts/Lora") as Promise<GoogleFont>,
+ },
{
family: "Merriweather",
- load: () => import("@remotion/google-fonts/Merriweather"),
+ load: () =>
+ import("@remotion/google-fonts/Merriweather") as Promise<GoogleFont>,
},
{
family: "Montserrat",
- load: () => import("@remotion/google-fonts/Montserrat"),
+ load: () =>
+ import("@remotion/google-fonts/Montserrat") as Promise<GoogleFont>,
},
- { family: "Mukta", load: () => import("@remotion/google-fonts/Mukta") },
{
family: "Noto Sans",
- load: () => import("@remotion/google-fonts/NotoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSans") as Promise<GoogleFont>,
},
{
family: "Noto Sans JP",
- load: () => import("@remotion/google-fonts/NotoSansJP"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansJP") as Promise<GoogleFont>,
},
{
family: "Noto Sans KR",
- load: () => import("@remotion/google-fonts/NotoSansKR"),
+ load: () =>
+ import("@remotion/google-fonts/NotoSansKR") as Promise<GoogleFont>,
+ },
+ {
+ family: "Noto Sans TC",
+ load: () =>
+ import("@remotion/google-fonts/NotoSansTC") as Promise<GoogleFont>,
+ },
+ {
+ family: "Nunito",
+ load: () => import("@remotion/google-fonts/Nunito") as Promise<GoogleFont>,
},
- { family: "Nunito", load: () => import("@remotion/google-fonts/Nunito") },
{
family: "Nunito Sans",
- load: () => import("@remotion/google-fonts/NunitoSans"),
+ load: () =>
+ import("@remotion/google-fonts/NunitoSans") as Promise<GoogleFont>,
},
{
family: "Open Sans",
- load: () => import("@remotion/google-fonts/OpenSans"),
+ load: () =>
+ import("@remotion/google-fonts/OpenSans") as Promise<GoogleFont>,
+ },
+ {
+ family: "Oswald",
+ load: () => import("@remotion/google-fonts/Oswald") as Promise<GoogleFont>,
+ },
+ {
+ family: "PT Sans",
+ load: () => import("@remotion/google-fonts/PTSans") as Promise<GoogleFont>,
},
- { family: "Oswald", load: () => import("@remotion/google-fonts/Oswald") },
- { family: "PT Sans", load: () => import("@remotion/google-fonts/PTSans") },
{
family: "Playfair Display",
- load: () => import("@remotion/google-fonts/PlayfairDisplay"),
+ load: () =>
+ import("@remotion/google-fonts/PlayfairDisplay") as Promise<GoogleFont>,
+ },
+ {
+ family: "Poppins",
+ load: () => import("@remotion/google-fonts/Poppins") as Promise<GoogleFont>,
+ },
+ {
+ family: "Raleway",
+ load: () => import("@remotion/google-fonts/Raleway") as Promise<GoogleFont>,
+ },
+ {
+ family: "Roboto",
+ load: () => import("@remotion/google-fonts/Roboto") as Promise<GoogleFont>,
},
- { family: "Poppins", load: () => import("@remotion/google-fonts/Poppins") },
- { family: "Raleway", load: () => import("@remotion/google-fonts/Raleway") },
- { family: "Roboto", load: () => import("@remotion/google-fonts/Roboto") },
{
family: "Roboto Condensed",
- load: () => import("@remotion/google-fonts/RobotoCondensed"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoCondensed") as Promise<GoogleFont>,
},
{
family: "Roboto Mono",
- load: () => import("@remotion/google-fonts/RobotoMono"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoMono") as Promise<GoogleFont>,
},
{
family: "Roboto Slab",
- load: () => import("@remotion/google-fonts/RobotoSlab"),
+ load: () =>
+ import("@remotion/google-fonts/RobotoSlab") as Promise<GoogleFont>,
+ },
+ {
+ family: "Rubik",
+ load: () => import("@remotion/google-fonts/Rubik") as Promise<GoogleFont>,
+ },
+ {
+ family: "Ubuntu",
+ load: () => import("@remotion/google-fonts/Ubuntu") as Promise<GoogleFont>,
},
- { family: "Rubik", load: () => import("@remotion/google-fonts/Rubik") },
- { family: "Ubuntu", load: () => import("@remotion/google-fonts/Ubuntu") },
{
family: "Work Sans",
- load: () => import("@remotion/google-fonts/WorkSans"),
+ load: () =>
+ import("@remotion/google-fonts/WorkSans") as Promise<GoogleFont>,
},
];
```
diff --git a/packages/docs/make-top-google-fonts.mjs b/packages/docs/make-top-google-fonts.mjs
index 62d1370e69..67a0387eed 100644
--- a/packages/docs/make-top-google-fonts.mjs
+++ b/packages/docs/make-top-google-fonts.mjs
@@ -21,20 +21,23 @@ const topFonts = sortBy(
s.family !== "Material Icons Round" &&
s.family !== "Material Icons Sharp" &&
s.family !== "Material Symbols Outlined" &&
+ s.family !== "Material Symbols Rounded" &&
s.family !== "Material Icons Two Tone"
);
})
.slice(0, amount),
- (s) => s.family
+ (s) => s.family,
);
const availableFonts = getAvailableFonts();
const remotionList = topFonts.map((t) => {
const { importName } = availableFonts.find((f) => f.fontFamily === t.family);
- return `{family: "${t.family}", load: () => import("@remotion/google-fonts/${importName}")},`;
+ return `{family: "${t.family}", load: () => import("@remotion/google-fonts/${importName}") as Promise<GoogleFont>},`;
});
-const js = "export const top" + amount + " = [" + remotionList.join("") + "]";
-const prettified = prettier.format(js, {
+const js = `import type {GoogleFont} from '@remotion/google-fonts';\n\nexport const top${amount} = [${remotionList.join(
+ "",
+)}]`;
+const prettified = await prettier.format(js, {
parser: "typescript",
singleQuote: true,
quoteProps: "consistent",
diff --git a/packages/google-fonts/scripts/filtered-fonts.ts b/packages/google-fonts/scripts/filtered-fonts.ts
index 595990f2fc..2ff371c9e9 100644
--- a/packages/google-fonts/scripts/filtered-fonts.ts
+++ b/packages/google-fonts/scripts/filtered-fonts.ts
@@ -5,6 +5,7 @@ export const filteredFonts = googleFonts.filter((f) => {
return (
!f.family.includes("Material Icons") &&
!f.family.includes("Material Symbols") &&
+ !f.family.includes("Material Symbols Rounded") &&
!f.family.includes("Wavefont")
);
});