9 Jan
2013
9 Jan
'13
12:02 p.m.
On Wed, Jan 09, 2013 at 11:36:51AM -0600, Aric Stewart wrote:
+typedef struct { + WORD LigatureAnchor[1]; +} GPOS_ComponentRecord; + +typedef struct { + WORD ComponentCount; + GPOS_ComponentRecord ComponentRecord[1]; +} GPOS_LigatureAttach; +
+ for (i = 0; i < component_count && !offset; i++) + { + int k; + for (k = 0; k < class_count && !offset; k++) + offset = GET_BE_WORD(lt->ComponentRecord[i].LigatureAnchor[k]); + }
Hi Aric, This can't work as ComponentRecord is a variable-sized struct. Huw.