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和woff2两种字体格式,以及保证unicode唯一性 #1

Open
nanbowan323 opened this issue Sep 10, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@nanbowan323
Copy link

nanbowan323 commented Sep 10, 2024

非常棒的开源项目,感谢大佬开源。目前使用中遇到了两个问题能否通过修改node_modules里的内容解决:
1、pnpm icons:build构建web项目时只有ttf字体格式,实际woff和woff2也比较常用和需要,尝试在package.json中添加两种格式无效。
QQ_1725980666998
2、想知道如何固定unicode,使图标新增删除unicode不会变动,这样更适合图标库使用。

@nanbowan323 nanbowan323 changed the title 请问如何增加woff和woff2两种字体格式,另外使用figma时只能读取fream,而不是图标组件。 请问如何增加woff和woff2两种字体格式,另外Unicode不是唯一,新增删除会变动,不适合在图标库使用 Sep 12, 2024
@nanbowan323 nanbowan323 changed the title 请问如何增加woff和woff2两种字体格式,另外Unicode不是唯一,新增删除会变动,不适合在图标库使用 请问如何增加woff和woff2两种字体格式 Sep 12, 2024
@nanbowan323 nanbowan323 changed the title 请问如何增加woff和woff2两种字体格式 请问如何增加woff和woff2两种字体格式,以及保证unicode唯一性 Sep 18, 2024
@haoziqaq
Copy link
Member

  1. 我们可以支持 woff woff2 这两种格式
  2. 在 Varlet UI 的实践中我们发现 unicode 固定的意义不是很大,因为构建之后组件的名字和 unicode 产生了关联,用户实际使用的是组件的 name 而不是 unicode,name 是稳定的就不会有问题。

@haoziqaq haoziqaq added the help wanted Extra attention is needed label Sep 24, 2024
@nanbowan323
Copy link
Author

  1. 我们可以支持 woff woff2 这两种格式

  2. 在 Varlet UI 的实践中我们发现 unicode 固定的意义不是很大,因为构建之后组件的名字和 unicode 产生了关联,用户实际使用的是组件的 name 而不是 unicode,name 是稳定的就不会有问题。

1、请问我该在哪配置可以增加woff woff2两种字体格式?
2、unicode固定是因为在css使用的时候会用到,如果变动会导致项目中已使用的出现问题,不过unicode固定的方案我已经解决了,目前主要是第一个字体格式问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants