目前的 Firefox 中文列印?
Moderator: Forums Team
目前的 Firefox 中文列印?
我的系統是最近安裝的,主要軟體有:
glibc-2.3.4-20050125
gcc-3.4.3-20050110
freetype-2.1.9-r1 (bindist zip)
fontconfig-2.2.3
xorg-x11-6.8.2
qt-3.3.4-r2
kdebase-3.3.2-r2
firefox-1.0-r3 (gtk1)
xpdf-3.00-r8 (cjk)
ghostscript-7.07.1-r8 (X cjk cups)
已 google 及參考本區/酷學員/鳥哥/摩托學員,
如 font.FreeType2.enable = false 中文都是方格子,
如設為 true 只要 print to file,firefox 就會掛掉而跳出,
檢查 ~/mozilla.ps 檔案大小都是 32768 bytes.
gs /usr/share/ghostscript/7.07/example/cjk/gscjk_ac.ps
中文字只看得到
Sung Medium Typeface 中宋體
Hei Typeface 黑體
用 KGhostView 看也是一樣,真不知問題出在哪?
glibc-2.3.4-20050125
gcc-3.4.3-20050110
freetype-2.1.9-r1 (bindist zip)
fontconfig-2.2.3
xorg-x11-6.8.2
qt-3.3.4-r2
kdebase-3.3.2-r2
firefox-1.0-r3 (gtk1)
xpdf-3.00-r8 (cjk)
ghostscript-7.07.1-r8 (X cjk cups)
已 google 及參考本區/酷學員/鳥哥/摩托學員,
如 font.FreeType2.enable = false 中文都是方格子,
如設為 true 只要 print to file,firefox 就會掛掉而跳出,
檢查 ~/mozilla.ps 檔案大小都是 32768 bytes.
gs /usr/share/ghostscript/7.07/example/cjk/gscjk_ac.ps
中文字只看得到
Sung Medium Typeface 中宋體
Hei Typeface 黑體
用 KGhostView 看也是一樣,真不知問題出在哪?
- Hydonsingore
- Posts: 193
- Joined: Wed Jun 09, 2004 10:49 pm
- Location: Taiwan
- Contact:
http://bugs.gentoo.org/show_bug.cgi?id=72902
http://bugs.gentoo.org/show_bug.cgi?id=79213
http://forums.gentoo.org/viewtopic.php?t=259278
只能說這個問題從2004年11月到現在還沒能解決。
您可以試著使用mozilla-firefox-bin,在freetype2選項
開啟的情形下應該是不會crash。
(只是他的中文字型我還是搞不定...)
只能說在firefox-1.0出現到2004年11月底為止,是可以正常列印的。
http://bugs.gentoo.org/show_bug.cgi?id=79213
http://forums.gentoo.org/viewtopic.php?t=259278
只能說這個問題從2004年11月到現在還沒能解決。
您可以試著使用mozilla-firefox-bin,在freetype2選項
開啟的情形下應該是不會crash。
(只是他的中文字型我還是搞不定...)
只能說在firefox-1.0出現到2004年11月底為止,是可以正常列印的。
- Hydonsingore
- Posts: 193
- Joined: Wed Jun 09, 2004 10:49 pm
- Location: Taiwan
- Contact:
Mozilla有三種列印方式
參考 micro-HOWTO: international printing in mozilla
1. Postscript
2. FreeType2
3. XPrint
上面這一篇用的是 1.Postscript
以前的經驗:正如上面那個連結所述─This is broken for international characters。
wprint可以看到一部分中文,其他還是亂碼。
註:可以試試看xprint,firefox不會crash,只是我搞不定中文設定...
參考 micro-HOWTO: international printing in mozilla
1. Postscript
2. FreeType2
3. XPrint
上面這一篇用的是 1.Postscript
以前的經驗:正如上面那個連結所述─This is broken for international characters。
wprint可以看到一部分中文,其他還是亂碼。
註:可以試試看xprint,firefox不會crash,只是我搞不定中文設定...
閒來無事忍不住又試了起來,不過,這次倒是成功了
首先 freetype 需用 2.1.5-r1(bindist cjk),然後 firefox 是
0.9.3。
原先是 freetype-2.1.9 去 compile Firefox-0.9.3 有誤,
需用 Mandrake-1.0 source rpm 中的一個 patch:
mozilla-firefox-0.7.3-freetype-compile.patch,
compile 成功後當 font.FreeType2.enable = true,
會無法啟動 firefox,於是將 freetype 改成 2.1.5-r1 後,
print to file 然後以 Kghostscript 去看,中文字終於正常了。
我想如果直接以 freetype-2.1.5-r1 來 compile firefox-0.9.3
應該就不用 Mandrake 的 patch 了,不過,就留給你們去測試了。
當然,別忘了相關的設定,~/.mozilla/firefox/*/pref.js
user_pref("font.FreeType2.enable", true);
user_pref("font.directory.truetype.1", "/usr/share/fonts/arphicfonts");
user_pref("print.postscript.nativecode.zh-TW", "big5");
user_pref("print.postscript.nativefont.zh-TW", "ShanHeiSun-Light-B5-H");
夜深了,該睡了...
首先 freetype 需用 2.1.5-r1(bindist cjk),然後 firefox 是
0.9.3。
原先是 freetype-2.1.9 去 compile Firefox-0.9.3 有誤,
需用 Mandrake-1.0 source rpm 中的一個 patch:
mozilla-firefox-0.7.3-freetype-compile.patch,
compile 成功後當 font.FreeType2.enable = true,
會無法啟動 firefox,於是將 freetype 改成 2.1.5-r1 後,
print to file 然後以 Kghostscript 去看,中文字終於正常了。
我想如果直接以 freetype-2.1.5-r1 來 compile firefox-0.9.3
應該就不用 Mandrake 的 patch 了,不過,就留給你們去測試了。
當然,別忘了相關的設定,~/.mozilla/firefox/*/pref.js
user_pref("font.FreeType2.enable", true);
user_pref("font.directory.truetype.1", "/usr/share/fonts/arphicfonts");
user_pref("print.postscript.nativecode.zh-TW", "big5");
user_pref("print.postscript.nativefont.zh-TW", "ShanHeiSun-Light-B5-H");
夜深了,該睡了...
可能和網頁是什麼編碼也有關係。請參考:Jim wrote:又測試了 NetScape-7.2 中文列印完全正常...
http://bs2.twbbs.org/blog/post/EdwardLee/566
目前,如果網頁是 UTF-8 編碼,以上的設定會失敗,因為以上的 ps mode 的設定是給 Big5 編碼用的。
Edward G.J. Lee