java字体显示问题
Tofloor
poster avatar
gembit
deepin
2017-04-05 16:35
Author
为什么deepin下java gui程序字体显示不正常呢具体来说:用的不是系统字体,中文不全,有锯齿,有字体缺少的方块
Reply Favorite View the author
All Replies
avatar
Feelup
deepin
2017-04-05 16:46
#1
把Windows下的字体导入到deepin里面就可以解决了
Reply View the author
avatar
gembit
deepin
2017-04-05 16:53
#2
https://bbs.deepin.org/post/137144
把Windows下的字体导入到deepin里面就可以解决了

感觉不像是啊,我系统默认的思源黑体,字体已经很全了,以前用Ubuntu也没这种情况
Reply View the author
avatar
liujianfeng
deepin
2017-04-05 17:05
#3
java程序一般有内建的字体设置,在那里改一下字体
Reply View the author
avatar
159******54
deepin
2017-04-05 17:11
#4
试下等宽的字体试试?
Reply View the author
avatar
Feelup
deepin
2017-04-05 19:54
#5
https://bbs.deepin.org/post/137144
感觉不像是啊,我系统默认的思源黑体,字体已经很全了,以前用Ubuntu也没这种情况 ...

那就把ubuntu系统的字体复制过来,deepin本身自带的字体就比较少
Reply View the author
avatar
gembit
deepin
2017-04-05 21:59
#6
https://bbs.deepin.org/post/137144
那就把ubuntu系统的字体复制过来,deepin本身自带的字体就比较少

没有用,还是老问题
Reply View the author
avatar
gembit
deepin
2017-04-05 22:01
#7
https://bbs.deepin.org/post/137144
试下等宽的字体试试?

怎么设置等宽字体?系统字体吗?这样不行
Reply View the author
avatar
Feelup
deepin
2017-04-05 22:04
#8
https://bbs.deepin.org/post/137144
没有用,还是老问题

不是吧?你确定你没弄错吗?要将复制来的那个字体文件夹设置为755权限,字体文件设置为644权限,文件夹和字体文件的用户和用户组都要为root,然后进去那个字体文件夹下执行如下:
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
之后重启看看,应该是没问题的
Reply View the author
avatar
要讲武德
deepin
2017-04-05 23:00
#9
是不是要把IDE字体自己设置一下
Reply View the author