og/lib/fonts.js
2023-08-03 14:28:31 -05:00

140 lines
2.8 KiB
JavaScript

import fs from 'node:fs'
export const DMSans = [
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Thin.ttf'),
weight: 100,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-ThinItalic.ttf'),
weight: 100,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-ExtraLight.ttf'),
weight: 200,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-ExtraLightItalic.ttf'),
weight: 200,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Light.ttf'),
weight: 300,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-LightItalic.ttf'),
weight: 300,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Regular.ttf'),
weight: 400,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Italic.ttf'),
weight: 400,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Medium.ttf'),
weight: 500,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-MediumItalic.ttf'),
weight: 500,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-SemiBold.ttf'),
weight: 600,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-SemiBoldItalic.ttf'),
weight: 600,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Bold.ttf'),
weight: 700,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-BoldItalic.ttf'),
weight: 700,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-ExtraBold.ttf'),
weight: 800,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-ExtraBoldItalic.ttf'),
weight: 800,
style: 'italic'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-Black.ttf'),
weight: 900,
style: 'normal'
},
{
name: 'DM Sans',
data: fs.readFileSync('./assets/DMSans/DMSans-BlackItalic.ttf'),
weight: 900,
style: 'normal'
}
]
export const ComicSans = [
{
name: 'Comic Sans MS',
data: fs.readFileSync('./assets/ComicSans/ComicSans-Regular.ttf'),
weight: 400,
style: 'normal'
},
{
name: 'Comic Sans MS',
data: fs.readFileSync('./assets/ComicSans/ComicSans-Italic.ttf'),
weight: 400,
style: 'italic'
},
{
name: 'Comic Sans MS',
data: fs.readFileSync('./assets/ComicSans/ComicSans-Bold.ttf'),
weight: 700,
style: 'normal'
},
{
name: 'Comic Sans MS',
data: fs.readFileSync('./assets/ComicSans/ComicSans-BoldItalic.ttf'),
weight: 700,
style: 'italic'
}
]