Re: [筆記] Mozilla/Firefox 在 FreeBSD 的Big5中文列印

看板FreeBSD作者時間20年前 (2005/08/05 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 引述《chinsan.bbs@bbs.ilc.edu.tw (淡)》之銘言: > 呃,不知道有沒有人有比較好的作法? 我先拋磚引玉一下 :p > *先裝一下 Adobe 轉換的教育部 CID 字型(MOE CIDFonts) > # cd /usr/ports/chinese/moefonts-cid > # make install clean > *在 Mozilla/Firefox 內的網址列打 about:config > 『過濾器(filter)』打 print.postscript.nativefont.zh-TW 修改設定值為 > MOESung-Regular-ETen-B5-H > 另外新增『字串值(string)』為 print.postscript.nativecode.zh-TW 而設定為 > Big5 或是 big5 也可 > 如果效果要全部使用者都生效的話... 那麼在 user.js 內加入以下這兩行 > user_pref("print.postscript.nativecode.zh-TW", "Big5"); > user_pref("print.postscript.nativefont.zh-TW", "MOESung-Regular-ETen-B5-H"); > ※註: Firefox 的 user.js 在 > /usr/X11R6/lib/firefox/defaults/profile/user.js > Mozilla(-devel) 的 user.js 在 > /usr/X11R6/lib/mozilla-devel/defaults/profile/user.js > 當然,如果不喜歡用宋體字(MOEKai-Regular-ETen-B5-H),也可以改用 > 楷體字(MOEKai-Regular-ETen-B5-H)或其他你能取得的 CID ghostscript font 在我的系統上,除了上述的操作外,又根據statue在 http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/mozilla.html中所提, 修改了firefox中print的指令, gs -q -sDEVICE=pswrite "-sOutputFile=/tmp/out.ps" \ "-dNOPAUSE -dBATCH -dSAFER" && \ lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME} \ /tmp/out.ps && rm -f "/tmp/out.ps" 僅供參考。 -- I am emotioanlly constipated... -- ※ Origin: 生命科學 BBS <bbs.life.nthu.edu.tw> ◆ From: 086-105.microbio.sunysb.edu
文章代碼(AID): #12ybWK00 (FreeBSD)
文章代碼(AID): #12ybWK00 (FreeBSD)