+#if 1
+ // The OpenType spec. says that the ValueRecord table is
+ // sorted by secondGlyph. Unfortunately, there are fonts
+ // around that have an unsorted ValueRecord table.
+ const PairValueRecord *record = records;
+
+ for(le_int32 r = 0; r < recordCount; r += 1) {
+ if (SWAPW(record->secondGlyph) == glyphID) {
+ return record;
+ }
+
+ record = (const PairValueRecord *) ((char *) record + recordSize);
+ }
+#else