崮生(子虚) 140f84d3c7 feat: uni-app 插件 gs-webfont —— 字体按需加载(子集化)上线准备
- webfont-sdk 引擎修复两处并发池 bug(原版排队分支丢任务;闭包复用会让
  队列真身丢失导致 pending 卡死),新增 per-state provider 与 submitText 分批
- 新增 packages/uni-webfont:字符累积 + uni.loadFontFace 同 family 重载策略,
  串行保序(maxConcurrent=1),二次 loadFont 从引擎播种累积集
- 产物同步 uni_modules/gs-webfont/js_sdk(自包含 ESM+iife+d.ts)
- 端到端验证:mock 全绿;线上真实服务 4 字 → 10.1KB 合法 TTF
2026-08-16 10:34:40 +08:00

87 lines
2.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"id": "gs-webfont",
"version": "0.1.0",
"name": "字体按需加载(中文字体子集化)",
"description": "任意中文字体按实际字符动态裁剪加载10 字 ≈ 10KB。突破小程序 2MB 主包限制,无需构建期裁字、无需整包下载。支持微信/支付宝/百度/抖音/QQ 小程序、H5、App。",
"keywords": [
"字体",
"webfont",
"子集化",
"loadFontFace",
"中文字体",
"小程序字体"
],
"dcloudext": {
"type": "sdk",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "插件运行时会向子集化服务webfont.shenzilong.cn请求字体片段仅传输待渲染字符与字体名不含用户隐私数据。支持私有部署后零外部请求。",
"permissions": "无"
},
"npmurl": "https://www.npmjs.com/package/uni-webfont"
},
"uni_modules": {
"dependencies": [],
"uni-ext-api": {},
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y",
"alipay": "n"
},
"client": {
"Vue": {
"vue2": "y",
"vue3": "y"
},
"App": {
"app-vue": "y",
"app-nvue": "n",
"app-uvue": "y"
},
"小程序": {
"mp-weixin": "y",
"mp-alipay": "y",
"mp-baidu": "y",
"mp-toutiao": "y",
"mp-lark": "n",
"mp-qq": "y",
"mp-kuaishou": "n",
"mp-jd": "n",
"mp-360": "n"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "n",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序/云厂商": {},
"快应用": {
"华为": "n",
"联盟": "n"
}
}
}
}
}