|
|
发表于 2005-4-12 23:25:07
|
显示全部楼层
从 google 搜索到一个帖子, 讲的办法没想到也是添加那两句话
那就照葫芦画瓢, 把第二句的字体目录换成你机器上的, 试试看呢
Re: Problem with the chinese print-out in Firefox and Openoffice (分數: 1)
由 zunix 於 3月24日 (星期四) 上午11:25
(使用者資? | 寄出?息)
Email from user
I am writing to seek your help on my problem with the Chinese print-out in Firefox and Openoffice.
I had already downloaded and installed the fireflysung fonts which you posted on 07 December 2004 ( Fedora Core 1A Core 2 Core 3 [JO). It works perfectly well. Thanks for your article.
Both the Firefox and Openoffice can perfectly display Chinese content including Chinese file name, but the Chinese print-out are far away from what I expected as compared to the display. For Firefox, Chinese characters were printed with a little square whilst blank represented Chinese characters were printed in Openoffice. Please note that I am currently using Fedora Core 1
Reply to problem
Firefox Print Chinese
To print chinese in firefox you should add the follow lines (font path and enable freetype):
pref("font.FreeType2.enable", true);
pref("font.directory.truetype.1","/usr/share/fonts/fireflysung/");
in the configuration file of firefox to tell software where to find font to print (display font and print font are handling individually)
/usr/lib/firefox-1.0.1/defaults/pref/firefox.js (this is global setting)
.mozilla/firefox/da29nz3t.default/prefs.js (user's only setting, "da29nz3t.default" directory randomly generated, so the name in you Linux is different)
OpenOffice Print Chinese
Theorically, you can see then you can print. May be 1.1 is quite old version. In order to fix this problem, you should use the printer administration provided by OpenOffice. In the interface, there are a button name "fonts". Press that button and add the Chinese fonts which you are using. They common all store under the /usr/share/fonts directory. After you added fonts, the problem should solve. Further you should go to the setting of OpenOffice to tune the Language setting. Most of them only are configured to support English only. |
|