bashi@google.com | 00b790a | 2011-01-27 06:35:42 +0000 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef OTS_GDEF_H_ |
| 6 | #define OTS_GDEF_H_ |
| 7 | |
| 8 | #include "ots.h" |
| 9 | |
| 10 | namespace ots { |
| 11 | |
| 12 | struct OpenTypeGDEF { |
| 13 | OpenTypeGDEF() |
| 14 | : version_2(false), |
bashi@chromium.org | df5b76f | 2011-03-22 19:02:34 +0000 | [diff] [blame^] | 15 | has_glyph_class_def(false), |
bashi@google.com | 78a8baa | 2011-02-07 06:21:25 +0000 | [diff] [blame] | 16 | has_mark_attachment_class_def(false), |
| 17 | has_mark_glyph_sets_def(false), |
| 18 | num_mark_glyph_sets(0), |
bashi@google.com | 00b790a | 2011-01-27 06:35:42 +0000 | [diff] [blame] | 19 | data(NULL), |
| 20 | length(0) { |
| 21 | } |
| 22 | |
| 23 | bool version_2; |
bashi@chromium.org | df5b76f | 2011-03-22 19:02:34 +0000 | [diff] [blame^] | 24 | bool has_glyph_class_def; |
bashi@google.com | 78a8baa | 2011-02-07 06:21:25 +0000 | [diff] [blame] | 25 | bool has_mark_attachment_class_def; |
| 26 | bool has_mark_glyph_sets_def; |
| 27 | uint16_t num_mark_glyph_sets; |
| 28 | |
bashi@google.com | 00b790a | 2011-01-27 06:35:42 +0000 | [diff] [blame] | 29 | const uint8_t *data; |
| 30 | size_t length; |
| 31 | }; |
| 32 | |
| 33 | } // namespace ots |
| 34 | |
| 35 | #endif |
| 36 | |