Skip to content

Commit

Permalink
fix: 修复 firefox 在 font-family 的处理上的差异问题(#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonghaYao committed Jul 17, 2024
1 parent 35cc68a commit 4f4d959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/subsets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cn-font-split",
"version": "5.1.0",
"version": "5.1.1",
"description": "划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size.",
"main": "dist/index.js",
"browser": "dist/browser/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/subsets/src/templates/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const createCSS = (
.reverse()
.map(({ path, unicodeRange }) => {
const str = `@font-face {
font-family: "${family}";
font-family:"${family}";
src:${[
...locals,
`url("./${path}") format("woff2")`,
Expand Down

0 comments on commit 4f4d959

Please sign in to comment.