Skip to content

Commit

Permalink
feat(local): support looking up pascal-case fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 20, 2024
1 parent 19e7a3d commit ad3ee31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad3ee31

Please sign in to comment.