[dfont] Make test pass
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 13 Sep 2018 16:47:53 +0000 (18:47 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 13 Sep 2018 16:47:53 +0000 (18:47 +0200)
Offset 0 is not null in this context.

src/hb-open-file.hh

index d3e8722..b960d62 100644 (file)
@@ -309,7 +309,7 @@ struct ResourceRecord
   HBINT16      nameOffset;     /* Offset from beginning of resource name list
                                 * to resource name, -1 means there is none. */
   HBUINT8      attrs;          /* Resource attributes */
-  OffsetTo<LArrayOf<HBUINT8>, HBUINT24>
+  OffsetTo<LArrayOf<HBUINT8>, HBUINT24, false>
                offset;         /* Offset from beginning of data block to
                                 * data for this resource */
   HBUINT32     reserved;       /* Reserved for handle to resource */