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

不提供 woff 格式的字体 #26

Open
ouuan opened this issue Jan 29, 2023 · 1 comment
Open

不提供 woff 格式的字体 #26

ouuan opened this issue Jan 29, 2023 · 1 comment

Comments

@ouuan
Copy link
Owner

ouuan commented Jan 29, 2023

现在 woff2 完全不是兼容性的瓶颈,几乎没有用户会使用不支持 woff2 的浏览器,而如果不支持 woff2 的话很有可能 es6 也不支持。由于使用了 glyph-segregator,额外生成 woff 字体会占用不少构建时间。

只不过现在构建时间还可以接受,为极少数使用不支持 woff2 浏览器的用户提供虽然没有 JS 但有字体的体验也是可以的;更主要的原因是,glyph-segregator 虽然可能只有我一个用户但毕竟是个库,删掉 woff 更需要谨慎,而我懒得加个是否生成 woff 的设置(

所以可以过个一两年再去掉 woff。

@ouuan
Copy link
Owner Author

ouuan commented Jan 29, 2023

最好是能有个新一代字体格式,直接换成 woff2 和新一代格式(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant