使用 X11 远程连接 Linux 的时候,中文会乱码,显示不出来。
安装工具
yum install -y fontconfig mkfontscale apt-get -y install fontconfig xfonts-utils
字体
# 已安装字体 fc-list # 已安装中文字体 fc-list :lang=zh
安装字体
可以把 C:WindowsFonts 下的 msyh.ttf(或 msyh.ttc,微软雅黑) 复制到 Linux 的 /usr/share/fonts/ 目录下
刷新字体缓存
cd /usr/share/fonts/
mkfontscale
mkfontdir
fc-cache
IDEA 中无法打开 MarkDown,提示 Could not initialize class org.intellij.plugins.markdown.ui.preview.jcef.MarkdownJCEFHtmlPanel
yum install libXss* -y
https://einverne.github.io/post/2015/10/install-fonts-under-linux.html