Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox提示maxZone:0 #74

Closed
kkdaisuki opened this issue Jul 13, 2024 · 6 comments
Closed

Firefox提示maxZone:0 #74

kkdaisuki opened this issue Jul 13, 2024 · 6 comments
Assignees
Labels
bug Something isn't working 一般

Comments

@kkdaisuki
Copy link

现行css模板在firefox下会提示downloadable font: maxp: Bad maxZones: 0。参见https://github.com/ecomfe/fontmin/issues/83#issuecomment-1143771799。

去除

font-family: "${family}";
中间的空格应当即可解决。

@KonghaYao
Copy link
Owner

您好,感谢您的提示。这个 issue 需要有具体的字体及环境复现,可以的话,请提供一下哈 @KanbeKotoriDaisuki

@kkdaisuki
Copy link
Author

字体:资源圆体TTC全字符
环境:vite插件下

{
  renameOutputFont: "[hash][ext]",
  chunkSize: 1000 * 1024,
  chunkSizeTolerance: 1.5,
  testHTML: true,
}

@kkdaisuki
Copy link
Author

字体:资源圆体TTC全字符 环境:vite插件下

{
  renameOutputFont: "[hash][ext]",
  chunkSize: 1000 * 1024,
  chunkSizeTolerance: 1.5,
  testHTML: true,
}

不过开不开输出样例html文件是一样的就是了

@KonghaYao KonghaYao self-assigned this Jul 16, 2024
@KonghaYao KonghaYao added bug Something isn't working 一般 labels Jul 16, 2024
@KonghaYao
Copy link
Owner

@KanbeKotoriDaisuki

  1. TTC 默认是不会被 cn-font-split 解析的。因为 ttc 内部有多个 ttf,cn-font-split 没有内置的解析器。
  2. 如果你需要解析 TTC,那么可以用这个平台转换一下 https://transfonter.org/ttc-unpack
  3. 关于 FireFox 的 maxZone:0 问题属于 FireFox 84 的问题,在 128 等版本不会有此 BUG。并且考虑到低版本 FireFox 的市场占有率,估计不会进行修复。
image

@kkdaisuki
Copy link
Author

我实际使用的是cn版本各个字重的ttf,上面打错了。我测试用的环境是firefox 128.0,不排除是更新把老bug又刷出来了。

@KonghaYao
Copy link
Owner

感谢 5.1.1 版本修复了在 firefox 的这个 BUG!@KanbeKotoriDaisuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 一般
Projects
None yet
Development

No branches or pull requests

2 participants