SK-415 / HarukaBot

将 B 站的动态和直播信息推送至 QQ,基于 NoneBot2 开发
https://haruka-bot.sk415.icu
GNU Affero General Public License v3.0
831 stars 109 forks source link

【错误回报】字体配置没有生效 #349

Closed Sevenyine closed 1 year ago

Sevenyine commented 1 year ago

运行环境

Ubuntu 20.04

HarukaBot 版本

v1.5.3.post2

go-cqhttp 版本

v1.0.1

错误描述

字体已经安装到系统,重启后仍然无法生效。 系统fc-list :lang=zh运行结果: image .env文件尝试过以下写法均无法生效: HARUKA_DYNAMIC_FONT = "LXGW" HARUKA_DYNAMIC_FONT = "LXGW WenKai GB Screen" HARUKA_DYNAMIC_FONT = "霞鹜文楷 GB 屏幕阅读版" HARUKA_DYNAMIC_FONT = "霞鹜文楷"

image

类似的插件:nonebot_plugin_dialectlist 中,也有类似的配置项:dialectlist_font= "LXGW WenKai GB Screen",通过这样的写法可以生效。

image

报错日志(如果有)

No response

boxie123 commented 1 year ago

尝试删除变量名和等号之间的空格

HARUKA_DYNAMIC_FONT= "LXGW WenKai GB Screen"
Sevenyine commented 1 year ago

okok可以了 感谢