jetbrans的ide在linux下使用的默认中文字体是微软雅黑导致了中文全部变成方块。
把字体拷贝到/user/share/fonts/目录下再执行sudo fc-cache -fv
/user/share/fonts/
sudo fc-cache -fv
打开设置->外观和行为->外观->字体->使用自定义字体