fix(og): search for font family properly

This commit is contained in:
Jacky Zhao
2025-03-13 12:11:27 -07:00
parent 696403d3fa
commit 5928d82a56
2 changed files with 47 additions and 35 deletions

View File

@ -234,7 +234,7 @@ export const ComponentResources: QuartzEmitterPlugin = () => {
for (const fontFile of fontFiles) {
const res = await fetch(fontFile.url)
if (!res.ok) {
throw new Error(`failed to fetch font ${fontFile.filename}`)
throw new Error(`Failed to fetch font ${fontFile.filename}`)
}
const buf = await res.arrayBuffer()