{"id":26866562,"url":"https://github.com/icemic/huozi-rs","last_synced_at":"2025-07-05T02:34:29.346Z","repository":{"id":159121663,"uuid":"634440216","full_name":"Icemic/huozi-rs","owner":"Icemic","description":"(WIP) A simple typography engine for CJK languages, especially designed for game rich-text.","archived":false,"fork":false,"pushed_at":"2024-12-19T09:30:13.000Z","size":362,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:16:33.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Icemic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-30T05:55:06.000Z","updated_at":"2024-12-19T09:30:17.000Z","dependencies_parsed_at":"2025-05-07T01:48:09.252Z","dependency_job_id":null,"html_url":"https://github.com/Icemic/huozi-rs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Icemic/huozi-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemic%2Fhuozi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemic%2Fhuozi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemic%2Fhuozi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemic%2Fhuozi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Icemic","download_url":"https://codeload.github.com/Icemic/huozi-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemic%2Fhuozi-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671790,"owners_count":23494040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T04:55:02.532Z","updated_at":"2025-07-05T02:34:29.331Z","avatar_url":"https://github.com/Icemic.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"font-family: 'Source Han Serif', 'Source Han Serif CN', 'Source Han Serif SC', STSong, SimSun, serif; border: none; font-size: 48px; margin-bottom: 0;\"\u003e\n  \u003cruby\u003e活\u003crt\u003ehuó\u003c/rt\u003e字\u003crt\u003ezì\u003c/rt\u003e\u003c/ruby\u003e\u003csup style=\"font-size: 12px;line-height:48px;vertical-align: 65%;\"\u003e\u003ci\u003e\u003csmall\u003eRust\u003c/small\u003e\u003c/i\u003e\u003c/sup\u003e\n\u003c/h1\u003e\n\u003ch3 align=\"center\" style=\"font-family: 'PingFang SC', 'Microsoft Yahei', sans-serif; font-style: normal; margin-top: 0; font-weight: 400;\"\u003e\n  \u003cruby\u003e一个简单的中日韩文字排印引擎，为游戏富文本特别设计。\u003crt\u003eA simple typography engine for CJK languages, especially designed for game rich-text.\u003c/rt\u003e\u003c/ruby\u003e\n\u003c/h3\u003e\n\u003ch5 align=\"center\"\u003e（功能尚在开发中）\u003c/h5\u003e\n\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://crates.io/crates/huozi\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/huozi.svg?style=flat-square\" alt=\"\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.rs/huozi/latest/huozi/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/docsrs/huozi?style=flat-square\"\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/github/issues/icemic/huozi-rs.svg?style=flat-square\" alt=\"\" /\u003e\n\u003ca href=\"#许可\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache--2.0-blue.svg?style=flat-square\" alt=\"\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 总览\n\n活字（Rust）是 [huozi.js](https://github.com/Icemic/huozi.js) 的新一代版本，不同于后者而使用 Rust 实现，其具有以下特点：\n\n- 使用 SDF（Signed Distance Field）技术渲染字形\n- 动态 SDF 字形生成和缓存，支持同时渲染最多 1024 个不同字形\n- 支持多种排印效果，包括描边、阴影等\n- 支持多种字体格式，包括 TTF、OTF\n- 支持多种文字效果，包括下划线、删除线、颜色等（开发中）\n- 输出为图片或者纹理，并提供顶点坐标和纹理坐标，方便与任意渲染引擎集成\n- 支持[W3C 汉字排版需求](https://www.w3.org/TR/clreq/)，包括行内标点压缩、行内引号位置修正等（开发中）\n\n## Roadmap\n\n- [x] 字形生成和缓存\n- [x] [WGPU](https://github.com/gfx-rs/wgpu) 渲染范例\n- [x] 描边、阴影\n- [x] 多种字体格式\n- [x] 颜色\n- [ ] 下划线、删除线\n- [x] 输出为图片或纹理，提供顶点坐标和纹理坐标\n- [ ] W3C 汉字排版需求\n- [ ] 支持更多文字效果\n- [x] 支持 Windows、macOS、Linux、Android、iOS、Web (WebAssembly) 平台\n\n尚在早期开发阶段（咕），尤其是排版功能高度缺失，欢迎任何 Issue 和 Pull Request！\n\nAny translation is welcome!\n\n## 使用\n\n见 examples 目录。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemic%2Fhuozi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficemic%2Fhuozi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemic%2Fhuozi-rs/lists"}