We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a2e27 commit 27ccfffCopy full SHA for 27ccfff
src/embed-webfonts.ts
@@ -234,7 +234,11 @@ export async function getWebFontCSS<T extends HTMLElement>(
234
const cssTexts = await Promise.all(
235
rules
236
.filter((rule) =>
237
- usedFonts.has(normalizeFontFamily(rule.style.fontFamily)),
+ usedFonts.has(
238
+ normalizeFontFamily(
239
+ rule.style.fontFamily || rule.style.getPropertyValue('fontFamily'),
240
+ ),
241
242
)
243
.map((rule) => {
244
const baseUrl = rule.parentStyleSheet
0 commit comments