cjk support on unix is broken


Subject: cjk support on unix is broken
From: ha shao (hashao@chinese.com)
Date: Tue May 08 2001 - 07:13:07 CDT


The cjk support in abiword is broken now. currently, the fonts.dir
for cjk locales use a hack to support printing as:

Song-Medium-GB-EUC-H, -default-song-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000

where the fields are: ps fontname, xlfd, ascend, descend, width.
The average font ascend, descend, width are obtained with xlsfonts.

Since version 0.7.14, XAP_UnixFont depends on the first field
of fonts.dir as the font filename to do all the open/metrics operations.
The result is that Chinese support (display/printing) stop working
now.

I want to know if the new font handling mechanism also works for
ttf fonts with more than 255 glyphs? It seems the encoding.h for
ttftool only supports font with 255 glyphs.

If cjk ttf support cannot be easily add to the current font handling method,
would you put some work around for cjk fonts?

Also,file size of normal Chinese TT fonts are in the range of 3MB-10+MB.
Is it feasible to convert the fonts into type42 and embed in .ps
files?

PS: The cjk support was broken since 0.7.14. I did not check it out until
an user reported it.

Thanks.

-- 
Best regard
hashao



This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:03 CDT