mirror of
https://github.com/YuleBest/FontMM.git
synced 2026-12-04 03:11:48 +08:00
- 新增 web/src/fontsXml.ts: generateSansSerifFamily / applyWghtMode (字符串级 替换 sans-serif family 段, 保留 #ifdef 注释与格式) + fast-xml-parser 校验 - 配置页新增「字重覆写模式」: 不处理 / 裁切粗细等级 / 平均分配字重 (模式持久化到 FONTS/wght-mode.txt, 无可变字体时禁用提示) - 应用时覆写流程: 从 hans/hant/en 收集 wght 范围 (emoji/mono 除外), 多可变取跨度最小者; cp fonts.xml -> fetch -> 替换 -> base64 分块写回 模块 system/etc/fonts.xml; 无可变或模式 0 时跳过, 失败不阻断应用 - 平均分配: 400 固定, 两端按范围线性插值 (floor); 裁切: 仅保留范围内的字重 - README 特性与使用说明更新
2ec6c45c80
·
2026-08-08 01:53:53 +08:00
History