replace spinner, use disk cache for fonts

This commit is contained in:
Jacky Zhao
2025-03-13 08:38:16 -07:00
parent f301eca9a7
commit 07ffc8681e
7 changed files with 90 additions and 66 deletions

View File

@@ -3,7 +3,6 @@ import { i18n } from "../../i18n"
import { unescapeHTML } from "../../util/escape"
import { FullSlug, getFileExtension } from "../../util/path"
import { ImageOptions, SocialImageOptions, defaultImage, getSatoriFonts } from "../../util/og"
import { getFontSpecificationName } from "../../util/theme"
import sharp from "sharp"
import satori from "satori"
import { loadEmoji, getIconCode } from "../../util/emoji"