Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 1 | /* |
Behdad Esfahbod | 2409d5f | 2011-04-21 17:14:28 -0400 | [diff] [blame] | 2 | * Copyright © 2007,2008,2009 Red Hat, Inc. |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 3 | * |
Behdad Esfahbod | c755cb3 | 2010-04-22 00:11:43 -0400 | [diff] [blame] | 4 | * This is part of HarfBuzz, a text shaping library. |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 5 | * |
| 6 | * Permission is hereby granted, without written agreement and without |
| 7 | * license or royalty fees, to use, copy, modify, and distribute this |
| 8 | * software and its documentation for any purpose, provided that the |
| 9 | * above copyright notice and the following two paragraphs appear in |
| 10 | * all copies of this software. |
| 11 | * |
| 12 | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
| 13 | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
| 14 | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
| 15 | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
| 16 | * DAMAGE. |
| 17 | * |
| 18 | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
| 19 | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 20 | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
| 21 | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
| 22 | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 23 | * |
| 24 | * Red Hat Author(s): Behdad Esfahbod |
| 25 | */ |
| 26 | |
Behdad Esfahbod | 5f5b24f | 2009-08-02 20:03:12 -0400 | [diff] [blame] | 27 | #ifndef HB_OPEN_FILE_PRIVATE_HH |
| 28 | #define HB_OPEN_FILE_PRIVATE_HH |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 29 | |
Behdad Esfahbod | 7edb430 | 2009-08-04 22:06:57 -0400 | [diff] [blame] | 30 | #include "hb-open-type-private.hh" |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 31 | |
Behdad Esfahbod | acdba3f | 2010-07-23 15:11:18 -0400 | [diff] [blame] | 32 | |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 33 | |
| 34 | /* |
| 35 | * |
| 36 | * The OpenType Font File |
| 37 | * |
| 38 | */ |
| 39 | |
| 40 | |
| 41 | /* |
| 42 | * Organization of an OpenType Font |
| 43 | */ |
| 44 | |
| 45 | struct OpenTypeFontFile; |
| 46 | struct OffsetTable; |
| 47 | struct TTCHeader; |
| 48 | |
Behdad Esfahbod | 569da92 | 2010-05-10 16:38:32 -0400 | [diff] [blame] | 49 | |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 50 | typedef struct TableRecord |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 51 | { |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 52 | inline bool sanitize (hb_sanitize_context_t *c) { |
Behdad Esfahbod | 3e2401f | 2009-08-28 17:17:11 -0400 | [diff] [blame] | 53 | TRACE_SANITIZE (); |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 54 | return c->check_struct (this); |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 55 | } |
| 56 | |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 57 | Tag tag; /* 4-byte identifier. */ |
| 58 | CheckSum checkSum; /* CheckSum for this table. */ |
| 59 | ULONG offset; /* Offset from beginning of TrueType font |
| 60 | * file. */ |
| 61 | ULONG length; /* Length of this table. */ |
Behdad Esfahbod | 569da92 | 2010-05-10 16:38:32 -0400 | [diff] [blame] | 62 | public: |
| 63 | DEFINE_SIZE_STATIC (16); |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 64 | } OpenTypeTable; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 65 | |
| 66 | typedef struct OffsetTable |
| 67 | { |
| 68 | friend struct OpenTypeFontFile; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 69 | |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 70 | inline unsigned int get_table_count (void) const |
| 71 | { return numTables; } |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 72 | inline const TableRecord& get_table (unsigned int i) const |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 73 | { |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 74 | if (unlikely (i >= numTables)) return Null(TableRecord); |
| 75 | return tables[i]; |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 76 | } |
| 77 | inline bool find_table_index (hb_tag_t tag, unsigned int *table_index) const |
| 78 | { |
Behdad Esfahbod | ffd321a | 2010-04-21 00:14:12 -0400 | [diff] [blame] | 79 | Tag t; |
| 80 | t.set (tag); |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 81 | unsigned int count = numTables; |
| 82 | for (unsigned int i = 0; i < count; i++) |
| 83 | { |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 84 | if (t == tables[i].tag) |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 85 | { |
| 86 | if (table_index) *table_index = i; |
| 87 | return true; |
| 88 | } |
| 89 | } |
Behdad Esfahbod | b5db4f1 | 2010-05-10 22:22:22 -0400 | [diff] [blame] | 90 | if (table_index) *table_index = Index::NOT_FOUND_INDEX; |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 91 | return false; |
| 92 | } |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 93 | inline const TableRecord& get_table_by_tag (hb_tag_t tag) const |
Behdad Esfahbod | bff3c0f | 2009-08-07 19:46:30 -0400 | [diff] [blame] | 94 | { |
| 95 | unsigned int table_index; |
| 96 | find_table_index (tag, &table_index); |
| 97 | return get_table (table_index); |
| 98 | } |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 99 | |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 100 | public: |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 101 | inline bool sanitize (hb_sanitize_context_t *c) { |
Behdad Esfahbod | 3e2401f | 2009-08-28 17:17:11 -0400 | [diff] [blame] | 102 | TRACE_SANITIZE (); |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 103 | return c->check_struct (this) |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 104 | && c->check_array (tables, TableRecord::static_size, numTables); |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 105 | } |
| 106 | |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 107 | private: |
| 108 | Tag sfnt_version; /* '\0\001\0\00' if TrueType / 'OTTO' if CFF */ |
| 109 | USHORT numTables; /* Number of tables. */ |
| 110 | USHORT searchRange; /* (Maximum power of 2 <= numTables) x 16 */ |
| 111 | USHORT entrySelector; /* Log2(maximum power of 2 <= numTables). */ |
| 112 | USHORT rangeShift; /* NumTables x 16-searchRange. */ |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 113 | TableRecord tables[VAR]; /* TableRecord entries. numTables items */ |
Behdad Esfahbod | 569da92 | 2010-05-10 16:38:32 -0400 | [diff] [blame] | 114 | public: |
Behdad Esfahbod | 22c5376 | 2010-12-14 23:51:29 -0500 | [diff] [blame] | 115 | DEFINE_SIZE_ARRAY (12, tables); |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 116 | } OpenTypeFontFace; |
Behdad Esfahbod | 569da92 | 2010-05-10 16:38:32 -0400 | [diff] [blame] | 117 | |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 118 | |
| 119 | /* |
| 120 | * TrueType Collections |
| 121 | */ |
| 122 | |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 123 | struct TTCHeaderVersion1 |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 124 | { |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 125 | friend struct TTCHeader; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 126 | |
Behdad Esfahbod | 20b035d | 2009-08-10 19:00:36 -0400 | [diff] [blame] | 127 | inline unsigned int get_face_count (void) const { return table.len; } |
Behdad Esfahbod | df3f505 | 2010-04-22 14:11:33 -0400 | [diff] [blame] | 128 | inline const OpenTypeFontFace& get_face (unsigned int i) const { return this+table[i]; } |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 129 | |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 130 | inline bool sanitize (hb_sanitize_context_t *c) { |
Behdad Esfahbod | 3e2401f | 2009-08-28 17:17:11 -0400 | [diff] [blame] | 131 | TRACE_SANITIZE (); |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 132 | return table.sanitize (c, this); |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 133 | } |
| 134 | |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 135 | private: |
| 136 | Tag ttcTag; /* TrueType Collection ID string: 'ttcf' */ |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 137 | FixedVersion version; /* Version of the TTC Header (1.0), |
| 138 | * 0x00010000 */ |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 139 | LongOffsetLongArrayOf<OffsetTable> |
| 140 | table; /* Array of offsets to the OffsetTable for each font |
| 141 | * from the beginning of the file */ |
Behdad Esfahbod | b365123 | 2010-05-10 16:57:29 -0400 | [diff] [blame] | 142 | public: |
Behdad Esfahbod | 0eb9fc6 | 2010-05-10 19:01:17 -0400 | [diff] [blame] | 143 | DEFINE_SIZE_ARRAY (12, table); |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 144 | }; |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 145 | |
| 146 | struct TTCHeader |
| 147 | { |
| 148 | friend struct OpenTypeFontFile; |
| 149 | |
| 150 | private: |
| 151 | |
| 152 | inline unsigned int get_face_count (void) const |
| 153 | { |
Behdad Esfahbod | 4f28fbd | 2011-05-31 12:33:11 -0400 | [diff] [blame] | 154 | switch (u.header.version.major) { |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 155 | case 2: /* version 2 is compatible with version 1 */ |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 156 | case 1: return u.version1.get_face_count (); |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 157 | default:return 0; |
| 158 | } |
| 159 | } |
| 160 | inline const OpenTypeFontFace& get_face (unsigned int i) const |
| 161 | { |
Behdad Esfahbod | 4f28fbd | 2011-05-31 12:33:11 -0400 | [diff] [blame] | 162 | switch (u.header.version.major) { |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 163 | case 2: /* version 2 is compatible with version 1 */ |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 164 | case 1: return u.version1.get_face (i); |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 165 | default:return Null(OpenTypeFontFace); |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 166 | } |
| 167 | } |
| 168 | |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 169 | inline bool sanitize (hb_sanitize_context_t *c) { |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 170 | TRACE_SANITIZE (); |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 171 | if (unlikely (!u.header.version.sanitize (c))) return false; |
Behdad Esfahbod | 4f28fbd | 2011-05-31 12:33:11 -0400 | [diff] [blame] | 172 | switch (u.header.version.major) { |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 173 | case 2: /* version 2 is compatible with version 1 */ |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 174 | case 1: return u.version1.sanitize (c); |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 175 | default:return true; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | private: |
| 180 | union { |
| 181 | struct { |
| 182 | Tag ttcTag; /* TrueType Collection ID string: 'ttcf' */ |
| 183 | FixedVersion version; /* Version of the TTC Header (1.0 or 2.0), |
| 184 | * 0x00010000 or 0x00020000 */ |
| 185 | } header; |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 186 | TTCHeaderVersion1 version1; |
Behdad Esfahbod | ae4190c | 2010-04-23 12:33:02 -0400 | [diff] [blame] | 187 | } u; |
| 188 | }; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 189 | |
| 190 | |
| 191 | /* |
| 192 | * OpenType Font File |
| 193 | */ |
| 194 | |
| 195 | struct OpenTypeFontFile |
| 196 | { |
Behdad Esfahbod | 710500a | 2010-05-03 23:11:16 -0400 | [diff] [blame] | 197 | static const hb_tag_t CFFTag = HB_TAG ('O','T','T','O'); /* OpenType with Postscript outlines */ |
| 198 | static const hb_tag_t TrueTypeTag = HB_TAG ( 0 , 1 , 0 , 0 ); /* OpenType with TrueType outlines */ |
| 199 | static const hb_tag_t TTCTag = HB_TAG ('t','t','c','f'); /* TrueType Collection */ |
Behdad Esfahbod | ce5694c | 2010-05-04 14:10:18 -0400 | [diff] [blame] | 200 | static const hb_tag_t TrueTag = HB_TAG ('t','r','u','e'); /* Obsolete Apple TrueType */ |
| 201 | static const hb_tag_t Typ1Tag = HB_TAG ('t','y','p','1'); /* Obsolete Apple Type1 font in SFNT container */ |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 202 | |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 203 | inline hb_tag_t get_tag (void) const { return u.tag; } |
| 204 | |
Behdad Esfahbod | 20b035d | 2009-08-10 19:00:36 -0400 | [diff] [blame] | 205 | inline unsigned int get_face_count (void) const |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 206 | { |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 207 | switch (u.tag) { |
| 208 | case CFFTag: /* All the non-collection tags */ |
Jeff Muizelaar | 4ce578e | 2010-05-03 15:03:53 -0400 | [diff] [blame] | 209 | case TrueTag: |
| 210 | case Typ1Tag: |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 211 | case TrueTypeTag: return 1; |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 212 | case TTCTag: return u.ttcHeader.get_face_count (); |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 213 | default: return 0; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 214 | } |
| 215 | } |
Behdad Esfahbod | 20b035d | 2009-08-10 19:00:36 -0400 | [diff] [blame] | 216 | inline const OpenTypeFontFace& get_face (unsigned int i) const |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 217 | { |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 218 | switch (u.tag) { |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 219 | /* Note: for non-collection SFNT data we ignore index. This is because |
| 220 | * Apple dfont container is a container of SFNT's. So each SFNT is a |
| 221 | * non-TTC, but the index is more than zero. */ |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 222 | case CFFTag: /* All the non-collection tags */ |
Jeff Muizelaar | 4ce578e | 2010-05-03 15:03:53 -0400 | [diff] [blame] | 223 | case TrueTag: |
| 224 | case Typ1Tag: |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 225 | case TrueTypeTag: return u.fontFace; |
| 226 | case TTCTag: return u.ttcHeader.get_face (i); |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 227 | default: return Null(OpenTypeFontFace); |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 228 | } |
| 229 | } |
| 230 | |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 231 | inline bool sanitize (hb_sanitize_context_t *c) { |
Behdad Esfahbod | 3e2401f | 2009-08-28 17:17:11 -0400 | [diff] [blame] | 232 | TRACE_SANITIZE (); |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 233 | if (unlikely (!u.tag.sanitize (c))) return false; |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 234 | switch (u.tag) { |
| 235 | case CFFTag: /* All the non-collection tags */ |
Jeff Muizelaar | 4ce578e | 2010-05-03 15:03:53 -0400 | [diff] [blame] | 236 | case TrueTag: |
| 237 | case Typ1Tag: |
Behdad Esfahbod | d7cfb3b | 2010-05-13 14:18:49 -0400 | [diff] [blame] | 238 | case TrueTypeTag: return u.fontFace.sanitize (c); |
| 239 | case TTCTag: return u.ttcHeader.sanitize (c); |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 240 | default: return true; |
Behdad Esfahbod | b508e5c | 2009-08-04 15:07:24 -0400 | [diff] [blame] | 241 | } |
| 242 | } |
| 243 | |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 244 | private: |
| 245 | union { |
| 246 | Tag tag; /* 4-byte identifier. */ |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 247 | OpenTypeFontFace fontFace; |
| 248 | TTCHeader ttcHeader; |
Behdad Esfahbod | 1aa4666 | 2010-04-23 13:32:03 -0400 | [diff] [blame] | 249 | } u; |
Behdad Esfahbod | dacebca | 2010-05-10 19:45:41 -0400 | [diff] [blame] | 250 | public: |
| 251 | DEFINE_SIZE_UNION (4, tag); |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 252 | }; |
Behdad Esfahbod | 2098a02 | 2009-08-02 19:57:00 -0400 | [diff] [blame] | 253 | |
| 254 | |
Behdad Esfahbod | acdba3f | 2010-07-23 15:11:18 -0400 | [diff] [blame] | 255 | |
Behdad Esfahbod | 5f5b24f | 2009-08-02 20:03:12 -0400 | [diff] [blame] | 256 | #endif /* HB_OPEN_FILE_PRIVATE_HH */ |