[DVIPDFMx] [PATCH] Fix computation of numOfExSideBearings in
tt_read_{h,v}hea_table
Tomas Janousek
tomi at nomi.cz
Sat May 2 19:39:52 KST 2009
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdvipdfmx-numOfExSideBearings.patch
Type: text/x-diff
Size: 692 bytes
Desc: not available
Url : http://project.ktug.or.kr/pipermail/dvipdfmx/attachments/20090502/93e30c17/xdvipdfmx-numOfExSideBearings.bin
More information about the dvipdfmx
mailing list