﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Lost Temple-随笔分类-java</title><link>http://www.blogjava.net/izuk/category/9493.html</link><description>我是一个程序员</description><language>zh-cn</language><lastBuildDate>Thu, 01 Mar 2007 02:35:44 GMT</lastBuildDate><pubDate>Thu, 01 Mar 2007 02:35:44 GMT</pubDate><ttl>60</ttl><item><title>Linux下JAVA程序中的中文显示</title><link>http://www.blogjava.net/izuk/archive/2006/04/04/39195.html</link><dc:creator>izuk</dc:creator><author>izuk</author><pubDate>Tue, 04 Apr 2006 08:42:00 GMT</pubDate><guid>http://www.blogjava.net/izuk/archive/2006/04/04/39195.html</guid><wfw:comment>http://www.blogjava.net/izuk/comments/39195.html</wfw:comment><comments>http://www.blogjava.net/izuk/archive/2006/04/04/39195.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/izuk/comments/commentRss/39195.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/izuk/services/trackbacks/39195.html</trackback:ping><description><![CDATA[问题：Freemind在编码设置为zh_CN.UTF8的Linux下运行时中文字显示为方块（或无显示）<br /><br />其实也就是一个font的问题。Google了一圈，找到一些在JRE中修改font.properties的方法。但是都没有解决问题。<br /><br />最后在Sun的网站上找到了解决办法<a href="http://java.sun.com/j2se/corejava/intl/reference/faqs/index.html">Internationalization FAQ</a>，很简单：<br /><br />Since the mapping from logical fonts to physical fonts is
implementation dependent, the answer varies. <font face="Courier New">For Sun's JRE 5.0, the
easiest way is to install the font into the JRE's lib/fonts/fallback
directory - it will be automatically added as a fallback font to all
logical fonts for 2D rendering</font>. <br /><br />还有一些关于font.properties的解释：<br />For AWT, you may need to modify a
<em>font configuration</em> file - see the web page
<a href="http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html">Font
Configuration Files</a>. For earlier versions of Sun's JRE, you need
to edit <i>font.properties</i> files - see the Font.properties Files
documents for
<a href="http://java.sun.com/j2se/1.4.2/docs/guide/intl/fontprop.html">J2SE 1.4.2</a>
and <a href="http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.html">J2SE 1.3.1</a>.
Note however that editing these files is a modification of the JRE,
and Sun does not support modified JREs. For other implementations,
see their respective documentation.<br /><br /><img src ="http://www.blogjava.net/izuk/aggbug/39195.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/izuk/" target="_blank">izuk</a> 2006-04-04 16:42 <a href="http://www.blogjava.net/izuk/archive/2006/04/04/39195.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>