[XeTeX] Several suggestions and bug reports concerning Asian language support

Jonathan Kew jonathan_kew at sil.org
Fri Oct 19 00:33:56 CEST 2007


On 18 Oct 2007, at 7:29 pm, Jjgod Jiang wrote:

> Hi Yin, Jonathan,
>
> 2007/10/18, Yin Dian <yindian at gmail.com>:
>> 2. Wrong width for CJK Ext-B characters.
>>
>> This bug is introduced in revision 93 of xdvipdfmx. Revision 92  
>> generates
>> the correct result, while the following revisions not.
>
> After some debugging, it turns out this bug is introduced by
> do_glyph_array() in
> dvi.c of xdvipdfmx, after r93, it use FreeType version to  
> determinate whether
> to retrieve the horiAdvance data directly from FreeType or load it by
> itself, but
> there is a little difference between these two cases, which results  
> the
> miscalculation for Sun-ExtB.ttf font.
> <snip>

It seems like this is really an error in the font, isn't it? It  
shouldn't be declared as fixed pitch if the advances are not all the  
same. But anyhow, your fix looks fine; I've applied it to the  
xdvipdfmx repository.

Thanks for the analysis and patch -- very helpful!

JK



More information about the XeTeX mailing list