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
Attachment:
x-ttcidfont-conf.conf2
Description: Binary data
Attachment:
x-ttcidfont-conf.defoma
Description: Binary data