Posted 2019-07-31Updated 2021-07-29Linux / Shella few seconds read (About 84 words)Shell 本地化本地化字体fc- fc-list:列出系统已安装字体 12# 仅展示中文字体$ fc-list :lang=zh fc-cache:创建字体信息缓存文件 mkfontdir/mkfontscale:创建字体文件索引 字体安装 将字体文件复制至字体文件夹 $HOME/.fonts /usr/share/fonts fc-cache 更新缓存信息
Posted 2019-06-10Updated 2019-06-10Python / Py3stda few seconds read (About 17 words)国际化locale1234import localelocale.getpreferredencoding() # 获取平台默认编码方案 gettext