From ad3ee31ad8137b7a728ecadb94fd1de9734843ef Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 20 Feb 2024 09:16:22 +0000 Subject: [PATCH] feat(local): support looking up pascal-case fonts --- src/providers/local.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/local.ts b/src/providers/local.ts index 03d1bf6..d4c5e0b 100644 --- a/src/providers/local.ts +++ b/src/providers/local.ts @@ -64,7 +64,7 @@ export default { ...(isDefaultStyle && isDefaultWeight && isDefaultSubset) ? [[]] : [] ] for (const option of options) { - const resolved = lookupFont([fontFamily, ...option].join('-')) + const resolved = lookupFont([fontFamily, ...option].join('-')) || lookupFont([fontFamily, ...option].join('')) if (resolved) { fonts.push({ src: resolved,