Skip to content

Commit 7a9d411

Browse files
Merge pull request #21 from SaltyAom/main
fix: opentype font format
2 parents 1a2dfdf + 8fa0110 commit 7a9d411

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

pnpm-lock.yaml

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/custom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const createFontFaceCSS = ({ name, src, local, weight, style, display }: CustomF
112112
.map((url) => {
113113
let format = url.split('.').pop()
114114
if (format === 'ttf') format = 'truetype'
115+
if (format === 'otf') format = 'opentype'
115116
return `url('${url}') format('${format}')`
116117
})
117118
.join(',\n\t\t')

0 commit comments

Comments
 (0)