Mon May 06 15:07:39 2002 Eric Mader * pango/opentype/ftxgdef.c: Compute full offset for mark attachment class table diff -u -p -r1.4 -r1.5 --- ftxgpos.c 15 Mar 2002 06:46:05 -0000 1.4 +++ ftxgpos.c 7 May 2002 20:38:50 -0000 1.5 Index: ftxgdef.c =================================================================== RCS file: /cvs/gnome/pango/pango/opentype/ftxgdef.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- ftxgdef.c 15 Mar 2002 06:46:05 -0000 1.4 +++ ftxgdef.c 7 May 2002 20:38:50 -0000 1.5 @@ -230,9 +230,15 @@ /* OpenType 1.2 has introduced the `MarkAttachClassDef' field. We first have to scan the LookupFlag values to find out whether we - must load it or not. Here we only store the current file offset. */ + must load it or not. Here we only store the offset of the table. */ + + new_offset = GET_UShort(); + + if ( new_offset ) + gdef->MarkAttachClassDef_offset = new_offset + base_offset; + else + gdef->MarkAttachClassDef_offset = 0; - gdef->MarkAttachClassDef_offset = FILE_Pos(); gdef->MarkAttachClassDef.loaded = FALSE; gdef->LastGlyph = 0;