diff --git a/fonts/Inter-UI-Bold.woff2 b/.fonts/Inter-UI-Bold.woff2 similarity index 100% rename from fonts/Inter-UI-Bold.woff2 rename to .fonts/Inter-UI-Bold.woff2 diff --git a/fonts/Inter-UI-Regular.woff2 b/.fonts/Inter-UI-Regular.woff2 similarity index 100% rename from fonts/Inter-UI-Regular.woff2 rename to .fonts/Inter-UI-Regular.woff2 diff --git a/.fonts/NotoColorEmoji.ttf b/.fonts/NotoColorEmoji.ttf new file mode 100644 index 0000000..3117123 Binary files /dev/null and b/.fonts/NotoColorEmoji.ttf differ diff --git a/src/template.ts b/src/template.ts index 609cad5..1ed15c8 100644 --- a/src/template.ts +++ b/src/template.ts @@ -4,8 +4,8 @@ import * as marked from 'marked'; import { sanitizeHtml } from './sanitizer'; function getCss(theme: string, fontSize: string) { - const regular = readFileSync(`${__dirname}/../fonts/Inter-UI-Regular.woff2`).toString('base64'); - const bold = readFileSync(`${__dirname}/../fonts/Inter-UI-Bold.woff2`).toString('base64'); + const regular = readFileSync(`${__dirname}/../.fonts/Inter-UI-Regular.woff2`).toString('base64'); + const bold = readFileSync(`${__dirname}/../.fonts/Inter-UI-Bold.woff2`).toString('base64'); let background = 'white'; let foreground = 'black'; let radial = 'lightgray';