Skip to content

🎥 Make videos programmatically with React

fix types

Jonny Burger14367bc29345
diff --git a/packages/example/src/Fonts/index.tsx b/packages/example/src/Fonts/index.tsx
index 7c60321cd0..1835a7ef46 100644
--- a/packages/example/src/Fonts/index.tsx
+++ b/packages/example/src/Fonts/index.tsx
@@ -1,10 +1,9 @@
-import {loadFont} from '@remotion/google-fonts/AreYouSerious';
+import {loadFont} from '@remotion/google-fonts/Genos';
import React from 'react';
import {AbsoluteFill} from 'remotion';
const {fontFamily} = loadFont('normal', {
- subsets: ['latin', 'latin-ext', 'vietnamese'],
- weights: ['400'],
+ weights: ['900', '500'],
});
export const FontDemo: React.FC = () => {
@@ -14,7 +13,7 @@ export const FontDemo: React.FC = () => {
justifyContent: 'center',
alignItems: 'center',
fontFamily,
- fontSize: 100,
+ fontSize: 200,
backgroundColor: 'whitesmoke',
}}
>
diff --git a/packages/google-fonts/src/base.ts b/packages/google-fonts/src/base.ts
index 7f4ae093fc..7045109abb 100644
--- a/packages/google-fonts/src/base.ts
+++ b/packages/google-fonts/src/base.ts
@@ -30,7 +30,7 @@ export const loadFonts = (
`The font ${meta.fontFamily} does not have a style ${style}`
);
}
- const weights = options?.weights ?? Object.keys(meta.fonts[style].weights);
+ const weights = options?.weights ?? Object.keys(meta.fonts[style]);
for (const weight of weights) {
if (!meta.fonts[style][weight]) {
throw new Error(