koishi-plugin-ll-mc 3.1.12 → 3.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +6 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2482,9 +2482,12 @@ ${targetUserRecord[0].username}
2482
2482
  <meta charset="UTF-8">
2483
2483
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
2484
2484
  <style>
2485
- /* 数字锁定:内嵌一个只含 0-9 的极小正常字体,避免被系统 emoji 字体(自带 0-9 且字宽很宽)撑成 "2 9 1 7"。
2486
- 其余字符(中文/字母/emoji)照常走下面的系统字体栈。 */
2485
+ /* 数字:内嵌极小(约3KB)的纯 0-9 字体并锁死,避免被系统 emoji 字体(自带 0-9 且字宽极宽)撑成 "2 9 1 7"。
2486
+ base64 内嵌,保证 setContent 回退路径下也生效。 */
2487
2487
  ${digitsFontFaceCss}
2488
+ /* emoji:用内置的紧身 emoji 字体(墨迹几乎填满字身),而系统 emoji 字体两侧各留约 0.19em 空白,
2489
+ 那正是"emoji 两边像有空格"的来源。相对路径 fonts/ 由 file:// 页面解析(模板已写入该目录)。 */
2490
+ @font-face { font-family: 'LLMCEmoji'; src: url("fonts/NotoEmoji.ttf") format('truetype'); }
2488
2491
  * { box-sizing: border-box; margin: 0; padding: 0; }
2489
2492
  html, body {
2490
2493
  width: 900px;
@@ -2493,7 +2496,7 @@ ${targetUserRecord[0].username}
2493
2496
  background-color: #F5F7FA;
2494
2497
  }
2495
2498
  body {
2496
- font-family: "LLMCDigits", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
2499
+ font-family: "LLMCDigits", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "LLMCEmoji", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
2497
2500
  -webkit-font-smoothing: antialiased;
2498
2501
  }
2499
2502
  .card {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ll-mc",
3
3
  "description": "消息数量统计插件(基于 koishi-plugin-message-counter 重做,官方QQ机器人兼容)",
4
- "version": "3.1.12",
4
+ "version": "3.1.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [