feat(posters): 新增思源宋体 Noto Serif SC(中文衬线 400/700),海报库达 2362/67

This commit is contained in:
sgp
2026-11-05 02:04:07 +08:00
parent 73f788556b
commit 07d2a79a60
12 changed files with 68 additions and 18 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ h1{font-size:16px}h2{font-size:14px}
<p>支持参数:<code>?only=源1,源2</code> 定向审计;<code>?max=N</code> 每源最多素材数;<code>?size=N</code> 渲染尺寸;<code>?compare=1</code> 开启「原始 vs 下载」逐像素对比。</p>
<div id="out"><p>加载中…</p></div>
<script src="js/data/poster-sources.js?v=20261105e"></script>
<script src="js/data/poster-builtin.js?v=20261105e"></script>
<script src="js/core/posterlib.js?v=20261105e"></script>
<script src="js/data/poster-sources.js?v=20261105f"></script>
<script src="js/data/poster-builtin.js?v=20261105f"></script>
<script src="js/core/posterlib.js?v=20261105f"></script>
<script>
/** 渲染 svg 字符串 → 像素统计 {blank, alphaSum, data, width, height} */
+1 -1
View File
@@ -12,7 +12,7 @@
const HGB_PosterLib = (function () {
'use strict';
const VERSION = '20261105e'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const VERSION = '20261105f'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const cache = {}; // sid -> {items:[...]}
const pending = {}; // sid -> Promise
+3 -3
View File
@@ -5,7 +5,7 @@
## 生成时间
2026-11-04T17:47:13.304Z
2026-11-04T18:03:56.685Z
## ① 图标库(共享,LOGO/头像/海报共用)
@@ -15,8 +15,8 @@
## ② 海报素材库
- 源数:66 | 素材总数:2360
- 类型分布:palette 7 / decoration 4 / bg 4 / font 51
- 源数:67 | 素材总数:2362
- 类型分布:palette 7 / decoration 4 / bg 4 / font 52
- 源清单:js/data/manifest/posters.json
## ③ 技能库
+22 -2
View File
@@ -1,7 +1,7 @@
{
"kind": "posters",
"total": 2360,
"builtAt": "2026-11-04T17:44:28.985Z",
"total": 2362,
"builtAt": "2026-11-04T18:01:31.225Z",
"guide": "js/data/manifest/README.md",
"idRule": "「源:相对路径」,如 fontsource-inter:latin-400-normal.woff2",
"sources": [
@@ -1324,6 +1324,26 @@
"workspaces": [
"poster"
]
},
{
"id": "noto-serif-sc",
"type": "font",
"name": "Noto Serif SC",
"nameCn": "思源宋体(中文衬线)",
"desc": "Google 与 Adobe 联合开源的思源宋体简体中文版(OFL 1.1),宋体骨架、横细竖粗、笔锋分明,适合文化、国风、节庆与高端中文标题",
"license": "OFL-1.1",
"licenseNote": "SIL Open Font License 1.1,可自由商用、修改与再分发,需保留版权声明且不得单独售卖字体",
"home": "https://fonts.google.com/noto/specimen/Noto+Serif+SC",
"github": "https://github.com/googlefonts/noto-cjk",
"format": "gh-files",
"coordText": "SubsetOTF 单文件(简体中文全字形子集,约 11MB / 字重)",
"variants": "Regular 400 / Bold 700",
"added": "2026-11-05",
"count": 2,
"file": "posters/noto-serif-sc.js",
"workspaces": [
"poster"
]
}
]
}
File diff suppressed because one or more lines are too long
+28
View File
@@ -958,6 +958,34 @@
variants: 'Regular 400 / Bold 700',
added: '2026-11-05',
workspaces: ['poster']
},
/* ============================================================
* —— 2026-11-05 中文衬线:思源宋体(Noto Serif SC)——
* 与思源黑体同仓库(googlefonts/noto-cjk Serif/SubsetOTF/SC)
* ============================================================ */
{
id: 'noto-serif-sc',
type: 'font',
name: 'Noto Serif SC',
nameCn: '思源宋体(中文衬线)',
desc: 'Google 与 Adobe 联合开源的思源宋体简体中文版(OFL 1.1),宋体骨架、横细竖粗、笔锋分明,适合文化、国风、节庆与高端中文标题',
license: 'OFL-1.1',
licenseNote: 'SIL Open Font License 1.1,可自由商用、修改与再分发,需保留版权声明且不得单独售卖字体',
home: 'https://fonts.google.com/noto/specimen/Noto+Serif+SC',
github: 'https://github.com/googlefonts/noto-cjk',
format: 'gh-files',
gh: 'googlefonts/noto-cjk',
ghBranch: 'main',
files: [
'Serif/SubsetOTF/SC/NotoSerifSC-Regular.otf',
'Serif/SubsetOTF/SC/NotoSerifSC-Bold.otf'
],
ext: ['.otf'],
scaleMode: 'wrap',
coordText: 'SubsetOTF 单文件(简体中文全字形子集,约 11MB / 字重)',
variants: 'Regular 400 / Bold 700',
added: '2026-11-05',
workspaces: ['poster']
}
];
});
+2
View File
@@ -0,0 +1,2 @@
/* Noto Serif SC(由 scripts/build-posters.js 生成,勿手动编辑)@cfg:wszbu9 */
window['HGB_PosterSource_noto-serif-sc'] = {"items":[{"id":"noto-serif-sc:NotoSerifSC-Regular","name":"NotoSerifSC-Regular","type":"font","category":"font","categoryCn":"字体排版","workspaces":["poster"],"file":"posters/noto-serif-sc/files/NotoSerifSC-Regular.otf","mime":"application/octet-stream","bytes":11625800,"sha256":"e8f396decc1f0963a016a989c3d8852e863d1350996f573860a80767c83a1cd3","width":null,"height":null},{"id":"noto-serif-sc:NotoSerifSC-Bold","name":"NotoSerifSC-Bold","type":"font","category":"font","categoryCn":"字体排版","workspaces":["poster"],"file":"posters/noto-serif-sc/files/NotoSerifSC-Bold.otf","mime":"application/octet-stream","bytes":12094336,"sha256":"24693d48bdb9152f0a06b02af625638a1097abd6de4010ebba027f6e82710527","width":null,"height":null}]};
+3 -3
View File
@@ -118,7 +118,7 @@
<script src="js/core/dicebear.js?v=20260822e"></script>
<script src="js/data/builtin-icons.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105e"></script>
<script src="js/data/poster-builtin.js?v=20261105f"></script>
<script>
(function () {
'use strict';
@@ -176,7 +176,7 @@
.catch(function () { ICON_SRC = window.HGB_IconSources || []; });
}
function loadPosterManifest() {
return fetch('js/data/manifest/posters.json?v=20261105e')
return fetch('js/data/manifest/posters.json?v=20261105f')
.then(function (r) { return r.json(); })
.then(function (m) { POSTER_SRC = m.sources || []; })
.catch(function () { POSTER_SRC = window.HGB_PosterSources || []; });
@@ -191,7 +191,7 @@
}
function loadPosterData(id) {
if (loadedCache['p_' + id]) return loadedCache['p_' + id];
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105e')
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105f')
.then(function () { return window['HGB_PosterSource_' + id] || null; });
return loadedCache['p_' + id];
}
+2 -2
View File
@@ -84,7 +84,7 @@
</div>
<script src="js/data/poster-sources.js"></script>
<script src="js/data/poster-builtin.js?v=20261105e"></script>
<script src="js/data/poster-builtin.js?v=20261105f"></script>
<script>
(function () {
const builtin = window.HGB_PosterBuiltin || { sources: {} };
@@ -139,7 +139,7 @@
}
// 优先读机器可读 manifest(js/data/manifest/posters.json,构建时生成);失败回退内置配置
fetch('js/data/manifest/posters.json?v=20261105e')
fetch('js/data/manifest/posters.json?v=20261105f')
.then(r => r.json())
.then(m => { sources = m.sources || []; render(); })
.catch(() => { sources = FALLBACK; render(); });
+2 -2
View File
@@ -90,8 +90,8 @@
<div id="toast" class="toast hidden"></div>
<script src="js/data/poster-sources.js"></script>
<script src="js/data/poster-builtin.js?v=20261105e"></script>
<script src="js/core/posterlib.js?v=20261105e"></script>
<script src="js/data/poster-builtin.js?v=20261105f"></script>
<script src="js/core/posterlib.js?v=20261105f"></script>
<script src="js/core/ai.js?v=20260927a"></script>
<script src="js/core/poster-store.js"></script>
<script src="js/core/poster-generator.js"></script>