Linux环境下Graphics drawString 中文乱码解决方法
作者:互联网
参考: https://www.jianshu.com/p/0e7c151b8565
第一种方法,添加系统中文字体(宋体):
root@dragon-virtual-machine:~# cd /usr/share/fonts
root@dragon-virtual-machine:/usr/share/fonts# mkdir winFonts
root@dragon-virtual-machine:/usr/share/fonts# cp /home/dragon/Desktop/simsun.ttc winFonts
root@dragon-virtual-machine:/usr/share/fonts# cd winFonts
root@dragon-virtual-machine:/usr/share/fonts/winFonts# mkfontdir
root@dragon-virtual-machine:/usr/share/fonts/winFonts# mkfontscale
作者:ana生
链接:https://www.jianshu.com/p/0e7c151b8565
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
标签:machine,share,virtual,dragon,乱码,drawString,usr,Linux,root 来源: https://www.cnblogs.com/eason-d/p/16502903.html