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

建议将下面中的 index.json 发布到 npm #60

Closed
ccbikai opened this issue Jul 13, 2024 · 5 comments
Closed

建议将下面中的 index.json 发布到 npm #60

ccbikai opened this issue Jul 13, 2024 · 5 comments

Comments

@ccbikai
Copy link

ccbikai commented Jul 13, 2024

想在网站做切换字体功能,需要使用 https://github.com/KonghaYao/chinese-free-web-font-storage/blob/branch/index.json 文件。

目前只能复制,直接安装 git 下面有很大拖慢打包速度。

建议将此项目也发布到 NPM, 忽略字体目录和文件,main 指向 index.json

@KonghaYao
Copy link
Owner

@chinese-fonts/index 这个仓库现在是提供构建索引了
另外,https://chinese-font.netlify.app/font-list.json 这个接口总是最新的数据。 @ccbikai

@ccbikai
Copy link
Author

ccbikai commented Jul 13, 2024

JSON 信息中缺少 fontFamily 信息

比如 斗鱼追光体 对应 "DOUYU Font"

@KonghaYao KonghaYao reopened this Jul 14, 2024
@KonghaYao
Copy link
Owner

@ccbikai 涉及到具体的 css 信息的话,需要改动一下构建流程,今天应该能完成

@KonghaYao
Copy link
Owner

@ccbikai @chinese-fonts/index 1.2.0 版本及线上接口都更新了 css 相关的信息
image

@ccbikai
Copy link
Author

ccbikai commented Jul 14, 2024

十分感谢, 已经用上了 javayhu/haitang#6

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

2 participants