Skip to content

🎥 Make videos programmatically with React

use example in fonts

Jonny Burger06f1d2837e04
diff --git a/packages/example/src/Fonts/index.tsx b/packages/example/src/Fonts/index.tsx
index 1e7dfbc977..7c60321cd0 100644
--- a/packages/example/src/Fonts/index.tsx
+++ b/packages/example/src/Fonts/index.tsx
@@ -1,8 +1,8 @@
-import {loadFont} from '@remotion/google-fonts/Montserrat';
+import {loadFont} from '@remotion/google-fonts/AreYouSerious';
import React from 'react';
import {AbsoluteFill} from 'remotion';
-loadFont('italic', {
+const {fontFamily} = loadFont('normal', {
subsets: ['latin', 'latin-ext', 'vietnamese'],
weights: ['400'],
});
@@ -13,8 +13,9 @@ export const FontDemo: React.FC = () => {
style={{
justifyContent: 'center',
alignItems: 'center',
- fontFamily: 'Bangers',
- fontSize: 300,
+ fontFamily,
+ fontSize: 100,
+ backgroundColor: 'whitesmoke',
}}
>
<h1>Font Demo</h1>