[DVIPDFMx] [PATCH] Fix computation of numOfExSideBearings in tt_read_{h, v}hea_table

Jin-Hwan Cho jinhwan.cho at gmail.com
Sat May 2 21:26:17 KST 2009


On May 2, 2009, at 7:39 PM, Tomas Janousek wrote:

> Hello,
>
> I'm attaching a patch fixing the problem desribed at [1]. Yes, I use
> xdvipdfmx, but the code in dvipdfmx is wrong as well and you should  
> probably
> fix it.
>
> [1] http://thread.gmane.org/gmane.comp.tex.xetex/10782
>
> The following line, as I understand it, computes the number of extra  
> side
> bearings as a number of extra shorts after the initial  
> numOfLongHorMetrics
> pairs in the hmtx table. Then, well, the len variable should hold  
> the size of
> the hmtx table, not hhea.
>
>  table->numOfExSideBearings = (USHORT)((len - table- 
> >numOfLongHorMetrics * 4) / 2);
>
> Regards,
> -- 
> Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
> <xdvipdfmx- 
> numOfExSideBearings 
> .patch>_______________________________________________
> dvipdfmx mailing list
> dvipdfmx at ktug.or.kr
> http://project.ktug.or.kr/mailman/listinfo/dvipdfmx

You were right. I could find the bug from the snapshot  
DVIPDFMX-20070409.
I wonder how dvipdfmx could work with this bug.

Thank you very much. I fixed the source code of the CVS, and released  
a new
snapshot DVIPDFMX-20090502 instead of 20090501.

Best regards, ChoF.


More information about the dvipdfmx mailing list