feat(expand): P0-P3 素材扩库批次(发现器 + Google Fonts + Poly Haven + Noto Emoji 3D)
- P0: scripts/discover-sources.js 四通道候选发现,产出 candidates.json / registry.json - P1: build-posters 新增 fontsource 适配器,接入 Google Fonts 2766 个 woff2 - P2: 新增 polyhaven 适配器,接入 Poly Haven CC0 纹理 238 张 - P3: build-icons 新增 gh-raster listPath(Git Tree 逐级下钻),接入 Noto Emoji 3D 3797 个 PNG - 修复: GitHub Contents API 不支持目录分页导致重复/截断,改为 Git Tree 下钻并按路径去重;audit-files.json 同步重建 - 判定 noto-emoji-2d / twemoji-png 与既有 Iconify 源同图重复,不予收录 - 基线: 图标 264 源/448,551;海报 69 源/5,366;版本联动 20261108a
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
* home 官网 github GitHub 仓库
|
||||
* format 拉取方式:gh-files(GitHub 仓库直拉)| dir-files(npm 目录枚举)
|
||||
* local(读取 js/data/posters/{id}/files 下预生成素材,用于 CSS 库提取物)
|
||||
* fontsource(构建时扫描 Fontsource 全量字族,按协议/子集自动下载 woff2)
|
||||
* polyhaven(构建时扫描 Poly Haven CC0 纹理,按分类轮转自动下载)
|
||||
* gh/ghBranch GitHub 仓库与分支(format=gh-files 必填)
|
||||
* npm npm 包名(format=dir-files 必填)
|
||||
* dirs 目标目录(gh-files / dir-files 均用)
|
||||
@@ -986,6 +988,51 @@
|
||||
variants: 'Regular 400 / Bold 700',
|
||||
added: '2026-11-05',
|
||||
workspaces: ['poster']
|
||||
},
|
||||
/* ============================================================
|
||||
* —— 2026-11-06 自动发现批次:西文字体全量 + CC0 纹理 ——
|
||||
* 两个源都采用「构建时自动发现」格式,新增字族/纹理无需改配置:
|
||||
* google-fonts Fontsource(Google Fonts 全量,OFL/Apache)→ woff2 latin 400/700
|
||||
* polyhaven-textures Poly Haven CC0 纹理 → 1024 JPG,按分类轮转保证多样性
|
||||
* ============================================================ */
|
||||
{
|
||||
id: 'google-fonts',
|
||||
type: 'font',
|
||||
name: 'Google Fonts (Latin)',
|
||||
nameCn: '谷歌字体库(西文全量)',
|
||||
desc: 'Google Fonts 全量 OFL/Apache 西文字族(经 Fontsource 分发),每族收录 400/700 两个字重的 latin 子集,覆盖无衬线、衬线、展示、手写与等宽,适合海报标题与正文排版',
|
||||
license: 'OFL-1.1 / Apache-2.0',
|
||||
licenseNote: 'OFL 1.1 与 Apache-2.0 混合,均可商用;OFL 需保留版权声明且不得单独售卖字体',
|
||||
home: 'https://fonts.google.com/',
|
||||
github: 'https://github.com/google/fonts',
|
||||
format: 'fontsource',
|
||||
subsets: ['latin'],
|
||||
weights: [400, 700],
|
||||
scaleMode: 'wrap',
|
||||
coordText: 'woff2 latin 子集(约 10–40KB / 字重)',
|
||||
variants: 'Regular 400 / Bold 700,约 1,900 个西文字族',
|
||||
added: '2026-11-06',
|
||||
workspaces: ['poster']
|
||||
},
|
||||
{
|
||||
id: 'polyhaven-textures',
|
||||
type: 'bg',
|
||||
name: 'Poly Haven Textures',
|
||||
nameCn: 'Poly Haven 无缝纹理',
|
||||
desc: 'Poly Haven 的 CC0 真实材质贴图(木纹、砖石、混凝土、织物、金属、岩砂、植被等),可无缝平铺,适合海报背景底色与肌理叠加',
|
||||
license: 'CC0-1.0',
|
||||
licenseNote: 'CC0 1.0 公共领域,可商用、可修改、无需署名',
|
||||
home: 'https://polyhaven.com/textures',
|
||||
github: '',
|
||||
format: 'polyhaven',
|
||||
maxItems: 240,
|
||||
res: '1k',
|
||||
imageFormat: 'jpg',
|
||||
scaleMode: 'wrap',
|
||||
coordText: '1024×1024 JPG(原图 8K,取 1k 预缩放版本)',
|
||||
variants: '按分类轮转挑选,覆盖木/砖/混凝土/织物/金属/岩砂等',
|
||||
added: '2026-11-06',
|
||||
workspaces: ['poster']
|
||||
}
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user