安装好centos6之后发现运行javaws,中文一堆乱码。搜索之。。
一、找到jre目录element
Font | |
---|---|
font-family | |
font-size | |
font-style | |
font-variant | |
font-weight | |
letter-spacing | |
line-height | |
text-decoration | |
text-align | |
text-indent | |
text-transform | |
white-space | |
word-spacing | |
color | |
Background | |
bg-attachment | |
bg-color | |
bg-image | |
bg-position | |
bg-repeat | |
Box | |
width | |
height | |
border-top | |
border-right | |
border-bottom | |
border-left | |
margin | |
padding | |
max-height | |
min-height | |
max-width | |
min-width | |
outline-color | |
outline-style | |
outline-width | |
Positioning | |
position | |
top | |
bottom | |
right | |
left | |
float | |
display | |
clear | |
z-index | |
List | |
list-style-image | |
list-style-type | |
list-style-position | |
Table | |
vertical-align | |
border-collapse | |
border-spacing | |
caption-side | |
empty-cells | |
table-layout | |
Effects | |
text-shadow | |
-webkit-box-shadow | |
border-radius | |
Other | |
overflow | |
cursor | |
visibility |
系统默认安装好openjdk,我的目录是/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
二、在/jre/lib 下建立/fonts/fallback/文件夹
有些lib目录下可能默认没有fonts目录,那就建个吧
三、拷贝中文字体进去,直接拷贝window下面的ttc字体
四、完事了。。