100b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com// Copyright (c) 2011 The Chromium Authors. All rights reserved.
200b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com// Use of this source code is governed by a BSD-style license that can be
300b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com// found in the LICENSE file.
400b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
500b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com#ifndef OTS_GDEF_H_
600b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com#define OTS_GDEF_H_
700b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
800b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com#include "ots.h"
900b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
1000b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.comnamespace ots {
1100b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
1200b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.comstruct OpenTypeGDEF {
1300b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com  OpenTypeGDEF()
1400b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com      : version_2(false),
15df5b76f08621c6589b4dde7f0b7177bab1bb297cbashi@chromium.org        has_glyph_class_def(false),
1678a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com        has_mark_attachment_class_def(false),
1778a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com        has_mark_glyph_sets_def(false),
1878a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com        num_mark_glyph_sets(0),
1900b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com        data(NULL),
2000b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com        length(0) {
2100b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com  }
2200b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
2300b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com  bool version_2;
24df5b76f08621c6589b4dde7f0b7177bab1bb297cbashi@chromium.org  bool has_glyph_class_def;
2578a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com  bool has_mark_attachment_class_def;
2678a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com  bool has_mark_glyph_sets_def;
2778a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com  uint16_t num_mark_glyph_sets;
2878a8baafff49244c7f9427ad72115ff1ad28e310bashi@google.com
2900b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com  const uint8_t *data;
3000b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com  size_t length;
3100b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com};
3200b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
3300b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com}  // namespace ots
3400b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
3500b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com#endif
3600b790a7ad0d65b066a61760f58e7dbfc055cd2dbashi@google.com
37