| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2011,2012 Google, Inc. | 2 * Copyright © 2011,2012 Google, Inc. |
| 3 * | 3 * |
| 4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
| 5 * | 5 * |
| 6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
| 7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
| 8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
| 9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
| 10 * all copies of this software. | 10 * all copies of this software. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 TRACE_SANITIZE (this); | 114 TRACE_SANITIZE (this); |
| 115 return TRACE_RETURN (c->check_struct (this) && | 115 return TRACE_RETURN (c->check_struct (this) && |
| 116 likely (format == 0 || format == 1) && | 116 likely (format == 0 || format == 1) && |
| 117 c->check_array (nameRecord, nameRecord[0].static_size,
count) && | 117 c->check_array (nameRecord, nameRecord[0].static_size,
count) && |
| 118 sanitize_records (c)); | 118 sanitize_records (c)); |
| 119 } | 119 } |
| 120 | 120 |
| 121 /* We only implement format 0 for now. */ | 121 /* We only implement format 0 for now. */ |
| 122 USHORT format; /* Format selector (=0/1). */ | 122 USHORT format; /* Format selector (=0/1). */ |
| 123 USHORT count; /* Number of name records. */ | 123 USHORT count; /* Number of name records. */ |
| 124 Offset» stringOffset;» » /* Offset to start of string storage (fr
om start of table). */ | 124 Offset<>» stringOffset;» » /* Offset to start of string storage (fr
om start of table). */ |
| 125 NameRecord nameRecord[VAR]; /* The name records where count is the n
umber of records. */ | 125 NameRecord nameRecord[VAR]; /* The name records where count is the n
umber of records. */ |
| 126 public: | 126 public: |
| 127 DEFINE_SIZE_ARRAY (6, nameRecord); | 127 DEFINE_SIZE_ARRAY (6, nameRecord); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 | 130 |
| 131 } /* namespace OT */ | 131 } /* namespace OT */ |
| 132 | 132 |
| 133 | 133 |
| 134 #endif /* HB_OT_NAME_TABLE_HH */ | 134 #endif /* HB_OT_NAME_TABLE_HH */ |
| OLD | NEW |