Page 1 of 1

PCManX&字型問題(安裝、使用)

Posted: Thu Dec 03, 2009 11:41 pm
by samuel
問題一:安裝pcmanx-gtk2-0.3.9 出問題

安裝的錯誤訊息

Code: Select all

 * Messages for package net-misc/pcmanx-gtk2-0.3.9:

 * 
 * ERROR: net-misc/pcmanx-gtk2-0.3.9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2548:  Called die
 * The specific snippet of code:
 *       doins plugin/src/pcmanx-plugin.so || die "failed to install firefox plugin"
 *  The die message:
 *   failed to install firefox plugin
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/pcmanx-gtk2-0.3.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/pcmanx-gtk2-0.3.9/temp/environment'.
 * This ebuild is from an overlay named 'gentoo-taiwan': '/usr/local/portage/layman/gentoo-taiwan/'
 * 
我的use flag
net-misc/pcmanx-gtk2 -firefox -nsplugin

emerge -pv pcmanx-gtk2

Code: Select all

$ emerge -pv pcmanx-gtk2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-misc/pcmanx-gtk2-0.3.9 [0.3.8-r2] USE="libnotify -nsplugin% -socks5 (-firefox%)" 0 kB [1]

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/gentoo-taiwan
ebuild 有寫錯嗎?
我已經下了-nsplugin 了
-firefox 被取代掉了我知道 我還沒改
但是應該沒影響吧..




問題二:使用bbs時的字型問題
使用PCManX-gtk2 上bbs 大多都OK
日文、中文大多都可以顯示出來
但是有些日文出不來

試過用Droid Sans Fallback
字少的可憐 幾乎日文都不行
用文鼎中楷 還OK
但是還是會漏一些字 整個空白在那邊

我wm為gnome 環境設定為
utf8, 輸入法為gcin
locale:

Code: Select all

LANG=POSIX
LC_CTYPE=zh_TW.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
我有試過用console 開PCManX-gtk2
在locale 為utf8 情況下
情況和直接按icon一樣

但是若console設定為big5
情形也一模一樣
但居然可以用gcin輸入中文 傻眼
我記得不是要在utf8模式才可以用嗎@@?
還是我記錯了

總之 除了用文鼎中楷漏字比較不嚴重之外
用Droid漏很嚴重

想請問怎麼設定?



另外 關於字型
版上字型的設定好像都很悠久(03,04,05年文章)
幾乎都是用xttmgr, fc-* 之類指令
這些還有再用嗎?有沒有教學文可以參考的?

不知道最近有沒有比較方便的設定方式
我在網路上搜尋到一篇文章
http://www.aiview.com/2008/01/gentoo_li ... fonts.html
似乎講的不錯
現在是處理方式是類似他說的這兩種嗎?

但是我對根據字型的類別 來設定 font.conf那邊不太懂
根據什麼、怎麼設定好像是個大哉問,背景知識不足

有沒有人可以幫忙指點謎津 m<_._>m

Re: PCManX&字型問題(安裝、使用)

Posted: Fri Dec 04, 2009 12:17 am
by samuel
我簡單修改 pcmanx-gtk2-0.3.9.ebuild

Code: Select all

47 
48 src_install(){
49     emake DESTDIR="${D}" install || die "emake failed"
50     if use nsplugin
51     then
52         insinto /usr/$(get_libdir)/nsbrowser/plugins
53         doins plugin/src/pcmanx-plugin.so || die "failed to install firefox plugin"
54     fi
55 }
加入50,51,54這三行 然後
# ebuild pcmanx-gtk2-0.3.9 manifest
# emerge pcmanx-gtk2
應該就可以 .....

Re: PCManX&字型問題(安裝、使用)

Posted: Fri Dec 04, 2009 11:05 am
by scsi
現在的字型設定,只需要將字型丟到 /usr/share/fonts裡
然後執行fc-cache or fc-cache -vf 後就可以用了

至於你的問題主要似乎是漏字的問題
字型裡的字不一定會都有,有漏字也不足為奇
一個方法是找到一個有夠你用的字型
另一個是採用替代字型的方法,我的作法是編輯/etc/fonts/local.conf
在prefer裡加上你要的替代字型
然後在應用程式裡使用serif or sans-serif or monospace字型

<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>Thorndale AMT</family>
<family>Luxi Serif</family>
<family>新細明體</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Verdana</family>
<family>Arial</family>
<family>Albany AMT</family>
<family>Lucida Sans</family>
<family>Luxi Sans</family>
<family>新細明體</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Andale Mono</family>
<family>Courier New</family>
<family>Cumberland AMT</family>
<family>Luxi Mono</family>
<family>細明體</family>
</prefer>
</alias>