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

Re: an incompitable feature in x-ttcidfont-conf and GBK code-set



On Thu, Jan 17, 2002 at 11:23:07PM +0800, Carlos Liu wrote:
> 我在用x-ttcidfont-conf处理GBK时,发现生成的fonts.dir中,GBK的设置会在行首加上"bw=0.5:",导致中文字符的width跟英文字符一样,变成一堆字符重叠在一起,而设为gb2312则无此问题,见下三行:
> bw=0.5:simsun.ttc -dynalab-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-1
> bw=0.5:simsun.ttc -dynalab-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
> simsun.ttc -dynalab-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
> 
> simsun的hints file内容如下:
> category truetype
> begin /usr/share/fonts/truetype/dynalab/simsun.ttc
....
>   X-Family = SimSun
>   X-Weight = medium
>   X-ElementAlias = foundry=default:family=simsun:resx=72:resy=72
>   TTCap = halfwidth-bw=0.5 italic-angle=0.167 no-roblique no-oblique no-ritalic
> end
> 
> 我目前的解决方法就是每次reregister-all后手动去掉gbk行首的"bw=0.5:"
> 使用debian时间尚短,所以也不知道是自己设置错误还是x-ttcidfont-conf的bug
> 请指正
> 

seems that defoma knows about gb2312 but do not know gbk. So when
it see a gb2312, it will not prepend the halfwidth-bw. Since it
does not know gbk, the bw is prepend as any other half width font
for a gbk font.

Fill a bug report to defoma or patch defoma if you want to spend
some time on it.

-- 
hashao|     夫战胜攻取而不修其功者凶,命曰“费留”。故曰:明主虑之,良将修
hashao|     之,非利不动,非得不用,非危不战。



Reply to: