feat: 添加 pilmoji 依赖并支持渲染 emoji 表情

- 在 requirements.txt 中添加 pilmoji==2.0.5 依赖
- 重构 ImageRenderer 类,使用 Pilmoji 替代 PIL 的原生 text 方法以支持渲染 emoji 表情
- 将字体路径配置提取为类常量 DEFAULT_FONT_PATHS,并包含 Windows 和 Linux 的默认路径
- 初始化方法中的 font_paths 参数默认为 None,自动使用默认字体路径列表
This commit is contained in:
2026-04-04 22:27:00 +08:00
parent 45fbb947da
commit 2214e22b80
2 changed files with 19 additions and 12 deletions

View File

@@ -49,6 +49,7 @@ nonebot_plugin_learning_chat==0.4.0
nonebot_plugin_withdraw==0.4.1
packaging==24.2
pillow==11.0.0
pilmoji==2.0.5
pipx==1.7.1
platformdirs==4.3.6
playwright==1.49.1