解决 ubuntu 中 java 乱码

  java 出来的 gui 都是乱码,Ubuntu 里 java 默认的中文字体就是uming.ttf,把文泉驿字体做个连接才行。(以下命令只有一行)

sudo ln -s /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc /usr/share/fonts/truetype/arphic/uming.ttf

TTC:

TrueType Collection (TTC) is an extension of TrueType format that allows combining multiple fonts into a single file, creating substantial space savings for collection of fonts that only use different glyphs on some characters. They were first available in Chinese, Japanese, and Korean versions of Windows, and supported for all regions in Windows 2000 and later.

简单说明:一种 TrueType 版本,允许将多个字体合并为一个文件。

TTF:

TrueType is an outline font standard originally developed by Apple Computer in the late 1980s as a competitor to Adobe's Type 1 fonts used in PostScript.

简单说明:TrueType 是由苹果公司开发的一种电脑轮廓字体类型标准。

《解决 ubuntu 中 java 乱码》上有1条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据