[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 如何找出一個漢字所對應的字體



Yes, it is a problem. Could be a FAQ.
\Question{
On Sat, Apr 27, 2002 at 10:30:24AM +0800, Wang Jian wrote:
> 我注意到目前的 pango 顯示漢字大小不一致,對一個字符串中
> 的漢字顯示忽大忽小。不知道你遇到這個問題沒有
> 
> 
 }
\contributor{hashao}{hashao@hashao.hypermart.net}{2002/04/28} 

應該是pango或者gtk+2.0的預設字體中的Sans 裡把國標字型放到後面
了,我沒有具體看原碼,反正是配字部分有問題,結果是顯示中文時
先在Sans裡找字,找不著才去看用戶指定的國標字型裡找。就出現大小
不同的字。

解決方法嘛,把Sans放最後,英文的具體字體放前面,然後是中文字體。
如果把中文字體放前面,回使用中文字體裡面的英文字,有多難看就
不用我說了。

以下是我的 /etc/gtk-2.0/gtkrc.zh_CN (trebuchet, verdana 是MS
的TTF,使用msttcorefonts 安裝,helvetica 是X11 內建的):

# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#

style "gtk-default-zh-cn" {
	font_name = "trebuchet,verdana,helvetica,Song,Sans, 14"

}
class "GtkWidget" style "gtk-default-zh-cn"

-- 
hashao|            卮酒向人時,和氣先傾倒。最要然然可可,萬事稱好。
hashao|            滑稽坐上,更對鴟夷笑。寒與熱,總隨人,甘國老。

-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.


-- 
To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: