On Tue, Apr 09, 2002 at 03:16:24AM -0700, Chen sheng wrote:
> 比如說, 我用的字體是hanzigb16fs, 它的全名為:
> -isas-fangsong
> ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
> 我想找出"陳"字在hanzigb16fs中所對應的位置.
> 
> 我用xfd查看hanzigb16fs字體,
> xfd -fn hanzigb16fs
> 發現"陳"[EMAIL PROTECTED]: 0x3342.
> [EMAIL PROTECTED], 即
> function("陳") 返回 0x3342
> 

沒有,對字體的函數應該直接交給xlib 的wc或者mb處理。他們會
根據xlocale 找出相應的字符。這是正統的i18n在X上的使用。
man XmbDrawString ....

你要是非自己處理,X的國標字型使用iso-2022-cn排列。對應
euc [EMAIL PROTECTED] 作 &0x80.

-- 
hashao|   千古江山,英雄無覓,孫仲謀處。舞榭歌台,風流總被,雨打風吹去。
hashao|   斜陽草樹,尋常巷陌,人道寄奴曾住。想當年、金戈鐵馬,氣吞萬裡如虎。

-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
| This message was re-posted from [email protected]
| and converted from gb2312 to big5 by an automatic gateway.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


回复