正在自动登录…
← 返回项目列表storytold/
storytold/ craft-fonts
为Crafting Apps提供可复用字体资源及相关Rust库,包含字体清单、校验和与测试,供应用构建时可选嵌入。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/20 21:41:46 · 查看原文
- 累计 Stars
- 384
- 当前热度
- 未达当前门槛
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/20 21:41:46
- 使用方式
作为构建时的可选输入,通过设置CRAFT_FONTS_DIR环境变量使应用嵌入字体;也可作为Rust库使用。
查看 README 依据
**Fully optional, never required.** The apps don't list craft-fonts in `Cargo.toml` (Cargo would fetch it for every build). Building with `CRAFT_FONTS_DIR=<path to this checkout>` makes an app embed the fonts in `fonts/manifest.txt`; without it, the app builds and runs as before. Release builds check out a pinned commit of this repo and set the option. See [`docs/integration.md`](docs/integration.md). **Font assets for the Crafting Apps belong here**, not in the app repos: add the file, its licence, a manifest line and an attribution row, and the tests check it. ## Develop ```sh
| `crates/craft-fonts` | Rust: the manifest as a static table, finding a checkout (`CRAFT_FONTS_DIR`), loading it, and an `embed` feature that compiles the fonts in. | | `crates/craft-fonts-tests` | Tests asserted on these fonts: checksums, licences, family names, Japanese coverage and outlines, vertical-text (`vert`/`vrt2`) support. | | `docs/integration.md` | How an app uses craft-fonts as a fully optional build input. | ### Fonts | Family | Styles | For | Licence | |---|---|---|---| | BIZ UDPGothic | Regular, Bold | Japanese UI text (sans) | OFL-1.1 |
- 部署要求
需要Rust环境以运行测试或作为库使用;字体文件较大,仓库可能较大。
查看 README 依据
cargo test --workspace # all font assertions cargo test -p craft-fonts --features embed # the embedded bytes match the files ``` Code is MIT OR Apache-2.0 (`LICENSE-MIT`, `LICENSE-APACHE`); each font keeps its own licence.
craft-fonts =========== Reusable fonts for the Crafting Apps. This library is meant to have the following: 1. Reusable font assets. These may be large files, and since we're using a separate repo for storing them, We're not afraid of potentially having to do a git reset to purge stale assets. It won't impact the other repos with core app and library functionality. 2. Additional cross-cutting Rust libraries for dealing with fonts. It's uncertain whether it's better to have code packages as individual repos as one classically does, or whether we should take a
- 已知限制
字体文件可能较大,仓库用于存储大文件,可能进行git reset清理。
查看 README 依据
craft-fonts =========== Reusable fonts for the Crafting Apps. This library is meant to have the following: 1. Reusable font assets. These may be large files, and since we're using a separate repo for storing them, We're not afraid of potentially having to do a git reset to purge stale assets. It won't impact the other repos with core app and library functionality. 2. Additional cross-cutting Rust libraries for dealing with fonts. It's uncertain whether it's better to have code packages as individual repos as one classically does, or whether we should take a
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/6 21:44:10
- 首次达标收录
- 2026/10/13 21:40:45
- 统计更新时间
- 2026/10/22 19:10:53
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 3.9 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/20 21:41:47 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/22 18:05:56
- 许可证标识
- Apache-2.0
- Fork 数
- 637
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目