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

Re: defoma 不能正確處理gbk?



On 10 Apr 2002 10:12:14 +0800
趙揚 <homebody@ccermail.net> wrote:

> 我使用defoma處理simsun, hints文件如下:
> 
> category truetype
> begin /usr/share/fonts/truetype/sim/simsun.ttf
>   Family = Sim-Song
>   FontName = Song-Medium
>   Encoding = Unicode
>   Location = Chinese-China English
>   Charset = ISO10646-1 GBK GB2312 ISO8859-1 BIG5
>   UniCharset = GBK GB2312 ISO8859-1
>   GeneralFamily = Song
>   Weight = Medium
>   Width = Fixed
>   Shape = Upright
>   Alias = SimSun
>   Foundry = Sim
>   Priority = 20
>   X-Family = SimSun
>   X-ElementAlias = foundry=default:family=song:resx=72:resy=72
>   TTCap = halfwidth-bw=0.5 italic-angle=0.167 no-roblique no-oblique
> no-ritalic
> end
> 
> 結果defoma將fonts.dir中simsun gbk的行前面加了bw=0.5, 然後X就只顯示左半個漢字了.
> 需要手工編輯fonts.dir才行.
> 請問是defoma的問題還是我的hints文件的問題? 謝謝.
> 

這是x-ttcidfont-conf只bug,修改/usr/share/defoma/scripts/x-ttcidfont-conf.defoma中有gb2312的那一行,加入gbk,再修改/etc/defoma/config/x-ttcidfont-conf.conf2,加入gbk-0,再重新注冊字體就好了
改好的文件在附件中

-- 
 Best Regards,
 Carlos Z.F. Liu
-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.

Attachment: x-ttcidfont-conf.conf2
Description: Binary data

Attachment: x-ttcidfont-conf.defoma
Description: Binary data


Reply to: