This commit is contained in:
TrèsAbhi committed 2024-03-09 22:50:55 -06:00
1 parent 58f6862279
commit 64f1de37ad
1 file changed
+4 -3
+4 -3
View File
@@ -1,18 +1,19 @@
import { readFileSync } from 'fs';
import satori from 'satori'; import satori from 'satori';
const fonts = [ const fonts = [
{ {
data: require('./Roboto.ttf'), data: readFileSync(require('./Roboto.ttf')),
weight: 400 as const, weight: 400 as const,
name: 'Roboto', name: 'Roboto',
}, },
{ {
data: require('./Roboto-Bold.ttf'), data: readFileSync(require('./Roboto-Bold.ttf')),
weight: 700 as const, weight: 700 as const,
name: 'Roboto-Bold', name: 'Roboto-Bold',
}, },
{ {
data: require('./Roboto-Black.ttf'), data: readFileSync(require('./Roboto-Black.ttf')),
weight: 900 as const, weight: 900 as const,
name: 'Roboto-Black', name: 'Roboto-Black',
}, },