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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user