hb-ot-layout-gdef-table.hh 13.2 KB
Newer Older
B
Behdad Esfahbod 已提交
1
/*
B
Behdad Esfahbod 已提交
2
 * Copyright © 2007,2008,2009  Red Hat, Inc.
3
 * Copyright © 2010,2011,2012  Google, Inc.
B
Behdad Esfahbod 已提交
4
 *
B
Behdad Esfahbod 已提交
5
 *  This is part of HarfBuzz, a text shaping library.
B
Behdad Esfahbod 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 *
 * Permission is hereby granted, without written agreement and without
 * license or royalty fees, to use, copy, modify, and distribute this
 * software and its documentation for any purpose, provided that the
 * above copyright notice and the following two paragraphs appear in
 * all copies of this software.
 *
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 * DAMAGE.
 *
 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 * Red Hat Author(s): Behdad Esfahbod
26
 * Google Author(s): Behdad Esfahbod
B
Behdad Esfahbod 已提交
27 28
 */

29 30
#ifndef HB_OT_LAYOUT_GDEF_TABLE_HH
#define HB_OT_LAYOUT_GDEF_TABLE_HH
B
Behdad Esfahbod 已提交
31

32
#include "hb-ot-layout-common-private.hh"
B
Behdad Esfahbod 已提交
33

34
#include "hb-font-private.hh"
35

B
Behdad Esfahbod 已提交
36

37 38
namespace OT {

39

40 41 42
/*
 * Attachment List Table
 */
B
Behdad Esfahbod 已提交
43

44
typedef ArrayOf<USHORT> AttachPoint;	/* Array of contour point indices--in
45
					 * increasing numerical order */
B
Behdad Esfahbod 已提交
46

B
Behdad Esfahbod 已提交
47 48
struct AttachList
{
B
Behdad Esfahbod 已提交
49 50 51 52
  inline unsigned int get_attach_points (hb_codepoint_t glyph_id,
					 unsigned int start_offset,
					 unsigned int *point_count /* IN/OUT */,
					 unsigned int *point_array /* OUT */) const
B
Behdad Esfahbod 已提交
53
  {
54
    unsigned int index = (this+coverage).get_coverage (glyph_id);
B
Behdad Esfahbod 已提交
55 56
    if (index == NOT_COVERED)
    {
B
Behdad Esfahbod 已提交
57 58 59
      if (point_count)
	*point_count = 0;
      return 0;
B
Behdad Esfahbod 已提交
60
    }
B
Behdad Esfahbod 已提交
61

B
Behdad Esfahbod 已提交
62 63
    const AttachPoint &points = this+attachPoint[index];

B
Behdad Esfahbod 已提交
64
    if (point_count) {
65
      const USHORT *array = points.sub_array (start_offset, point_count);
B
Behdad Esfahbod 已提交
66
      unsigned int count = *point_count;
B
Behdad Esfahbod 已提交
67 68 69
      for (unsigned int i = 0; i < count; i++)
	point_array[i] = array[i];
    }
B
Behdad Esfahbod 已提交
70

B
Behdad Esfahbod 已提交
71
    return points.len;
B
Behdad Esfahbod 已提交
72
  }
B
Behdad Esfahbod 已提交
73

B
Behdad Esfahbod 已提交
74 75
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
76
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
77
    return_trace (coverage.sanitize (c, this) && attachPoint.sanitize (c, this));
B
Behdad Esfahbod 已提交
78 79
  }

80
  protected:
81 82
  OffsetTo<Coverage>
		coverage;		/* Offset to Coverage table -- from
B
Behdad Esfahbod 已提交
83
					 * beginning of AttachList table */
B
Behdad Esfahbod 已提交
84 85 86
  OffsetArrayOf<AttachPoint>
		attachPoint;		/* Array of AttachPoint tables
					 * in Coverage Index order */
87
  public:
88
  DEFINE_SIZE_ARRAY (4, attachPoint);
B
Behdad Esfahbod 已提交
89 90 91 92 93 94
};

/*
 * Ligature Caret Table
 */

B
Behdad Esfahbod 已提交
95 96
struct CaretValueFormat1
{
B
Minor  
Behdad Esfahbod 已提交
97 98 99
  friend struct CaretValue;

  private:
100
  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const
B
Behdad Esfahbod 已提交
101
  {
B
Minor  
Behdad Esfahbod 已提交
102
    return HB_DIRECTION_IS_HORIZONTAL (direction) ? font->em_scale_x (coordinate) : font->em_scale_y (coordinate);
B
Behdad Esfahbod 已提交
103
  }
B
Behdad Esfahbod 已提交
104

B
Behdad Esfahbod 已提交
105 106
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
107
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
108
    return_trace (c->check_struct (this));
B
Behdad Esfahbod 已提交
109 110
  }

111
  protected:
B
Behdad Esfahbod 已提交
112 113
  USHORT	caretValueFormat;	/* Format identifier--format = 1 */
  SHORT		coordinate;		/* X or Y value, in design units */
114 115
  public:
  DEFINE_SIZE_STATIC (4);
B
Behdad Esfahbod 已提交
116 117
};

B
Behdad Esfahbod 已提交
118 119
struct CaretValueFormat2
{
B
Minor  
Behdad Esfahbod 已提交
120 121 122
  friend struct CaretValue;

  private:
123
  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const
B
Behdad Esfahbod 已提交
124
  {
B
Behdad Esfahbod 已提交
125
    hb_position_t x, y;
B
Behdad Esfahbod 已提交
126
    if (font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y))
127
      return HB_DIRECTION_IS_HORIZONTAL (direction) ? x : y;
B
Behdad Esfahbod 已提交
128 129
    else
      return 0;
B
Behdad Esfahbod 已提交
130
  }
B
Behdad Esfahbod 已提交
131

B
Behdad Esfahbod 已提交
132 133
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
134
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
135
    return_trace (c->check_struct (this));
B
Behdad Esfahbod 已提交
136 137
  }

138
  protected:
B
Behdad Esfahbod 已提交
139 140
  USHORT	caretValueFormat;	/* Format identifier--format = 2 */
  USHORT	caretValuePoint;	/* Contour point index on glyph */
141 142
  public:
  DEFINE_SIZE_STATIC (4);
B
Behdad Esfahbod 已提交
143 144
};

B
Behdad Esfahbod 已提交
145 146
struct CaretValueFormat3
{
B
Minor  
Behdad Esfahbod 已提交
147 148
  friend struct CaretValue;

149
  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const
B
Behdad Esfahbod 已提交
150
  {
151
    return HB_DIRECTION_IS_HORIZONTAL (direction) ?
B
Minor  
Behdad Esfahbod 已提交
152 153
           font->em_scale_x (coordinate) + (this+deviceTable).get_x_delta (font) :
           font->em_scale_y (coordinate) + (this+deviceTable).get_y_delta (font);
B
Behdad Esfahbod 已提交
154 155
  }

B
Behdad Esfahbod 已提交
156 157
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
158
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
159
    return_trace (c->check_struct (this) && deviceTable.sanitize (c, this));
B
Behdad Esfahbod 已提交
160 161
  }

162
  protected:
B
Behdad Esfahbod 已提交
163 164
  USHORT	caretValueFormat;	/* Format identifier--format = 3 */
  SHORT		coordinate;		/* X or Y value, in design units */
B
Behdad Esfahbod 已提交
165 166
  OffsetTo<Device>
		deviceTable;		/* Offset to Device table for X or Y
B
Behdad Esfahbod 已提交
167 168
					 * value--from beginning of CaretValue
					 * table */
169 170
  public:
  DEFINE_SIZE_STATIC (6);
B
Behdad Esfahbod 已提交
171 172
};

B
Behdad Esfahbod 已提交
173 174
struct CaretValue
{
175
  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const
B
Behdad Esfahbod 已提交
176
  {
B
Behdad Esfahbod 已提交
177
    switch (u.format) {
178 179 180
    case 1: return u.format1.get_caret_value (font, direction, glyph_id);
    case 2: return u.format2.get_caret_value (font, direction, glyph_id);
    case 3: return u.format3.get_caret_value (font, direction, glyph_id);
B
Behdad Esfahbod 已提交
181 182 183 184
    default:return 0;
    }
  }

B
Behdad Esfahbod 已提交
185 186
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
187
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
188
    if (!u.format.sanitize (c)) return_trace (false);
B
Behdad Esfahbod 已提交
189
    switch (u.format) {
B
Behdad Esfahbod 已提交
190 191 192 193
    case 1: return_trace (u.format1.sanitize (c));
    case 2: return_trace (u.format2.sanitize (c));
    case 3: return_trace (u.format3.sanitize (c));
    default:return_trace (true);
B
Behdad Esfahbod 已提交
194 195 196
    }
  }

197
  protected:
B
Behdad Esfahbod 已提交
198
  union {
B
Behdad Esfahbod 已提交
199
  USHORT		format;		/* Format identifier */
B
Behdad Esfahbod 已提交
200 201 202
  CaretValueFormat1	format1;
  CaretValueFormat2	format2;
  CaretValueFormat3	format3;
B
Behdad Esfahbod 已提交
203
  } u;
B
Behdad Esfahbod 已提交
204
  public:
B
Behdad Esfahbod 已提交
205
  DEFINE_SIZE_UNION (2, format);
B
Behdad Esfahbod 已提交
206
};
207

B
Behdad Esfahbod 已提交
208 209
struct LigGlyph
{
210
  inline unsigned int get_lig_carets (hb_font_t *font,
211
				      hb_direction_t direction,
B
Behdad Esfahbod 已提交
212 213 214
				      hb_codepoint_t glyph_id,
				      unsigned int start_offset,
				      unsigned int *caret_count /* IN/OUT */,
215
				      hb_position_t *caret_array /* OUT */) const
B
Behdad Esfahbod 已提交
216
  {
B
Behdad Esfahbod 已提交
217
    if (caret_count) {
218
      const OffsetTo<CaretValue> *array = carets.sub_array (start_offset, caret_count);
B
Behdad Esfahbod 已提交
219
      unsigned int count = *caret_count;
B
Behdad Esfahbod 已提交
220
      for (unsigned int i = 0; i < count; i++)
221
	caret_array[i] = (this+array[i]).get_caret_value (font, direction, glyph_id);
B
Behdad Esfahbod 已提交
222
    }
B
Behdad Esfahbod 已提交
223

B
Behdad Esfahbod 已提交
224
    return carets.len;
B
Behdad Esfahbod 已提交
225
  }
B
Minor  
Behdad Esfahbod 已提交
226

B
Behdad Esfahbod 已提交
227 228
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
229
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
230
    return_trace (carets.sanitize (c, this));
B
Behdad Esfahbod 已提交
231 232
  }

233
  protected:
B
Behdad Esfahbod 已提交
234
  OffsetArrayOf<CaretValue>
235
		carets;			/* Offset array of CaretValue tables
236 237
					 * --from beginning of LigGlyph table
					 * --in increasing coordinate order */
238
  public:
239
  DEFINE_SIZE_ARRAY (2, carets);
240
};
B
Behdad Esfahbod 已提交
241

B
Behdad Esfahbod 已提交
242 243
struct LigCaretList
{
244
  inline unsigned int get_lig_carets (hb_font_t *font,
245
				      hb_direction_t direction,
B
Behdad Esfahbod 已提交
246 247 248
				      hb_codepoint_t glyph_id,
				      unsigned int start_offset,
				      unsigned int *caret_count /* IN/OUT */,
249
				      hb_position_t *caret_array /* OUT */) const
B
Behdad Esfahbod 已提交
250
  {
251
    unsigned int index = (this+coverage).get_coverage (glyph_id);
B
Behdad Esfahbod 已提交
252 253
    if (index == NOT_COVERED)
    {
B
Behdad Esfahbod 已提交
254 255 256
      if (caret_count)
	*caret_count = 0;
      return 0;
B
Behdad Esfahbod 已提交
257 258
    }
    const LigGlyph &lig_glyph = this+ligGlyph[index];
259
    return lig_glyph.get_lig_carets (font, direction, glyph_id, start_offset, caret_count, caret_array);
B
Behdad Esfahbod 已提交
260
  }
261

B
Behdad Esfahbod 已提交
262 263
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
264
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
265
    return_trace (coverage.sanitize (c, this) && ligGlyph.sanitize (c, this));
B
Behdad Esfahbod 已提交
266 267
  }

268
  protected:
269 270
  OffsetTo<Coverage>
		coverage;		/* Offset to Coverage table--from
271
					 * beginning of LigCaretList table */
B
Behdad Esfahbod 已提交
272 273 274
  OffsetArrayOf<LigGlyph>
		ligGlyph;		/* Array of LigGlyph tables
					 * in Coverage Index order */
275
  public:
276
  DEFINE_SIZE_ARRAY (4, ligGlyph);
277 278
};

279 280 281 282 283 284

struct MarkGlyphSetsFormat1
{
  inline bool covers (unsigned int set_index, hb_codepoint_t glyph_id) const
  { return (this+coverage[set_index]).get_coverage (glyph_id) != NOT_COVERED; }

B
Behdad Esfahbod 已提交
285 286
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
287
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
288
    return_trace (coverage.sanitize (c, this));
B
Behdad Esfahbod 已提交
289 290
  }

291
  protected:
292
  USHORT	format;			/* Format identifier--format = 1 */
293
  ArrayOf<OffsetTo<Coverage, ULONG> >
294 295
		coverage;		/* Array of long offsets to mark set
					 * coverage tables */
296
  public:
297
  DEFINE_SIZE_ARRAY (4, coverage);
298 299 300 301 302 303 304
};

struct MarkGlyphSets
{
  inline bool covers (unsigned int set_index, hb_codepoint_t glyph_id) const
  {
    switch (u.format) {
B
Behdad Esfahbod 已提交
305
    case 1: return u.format1.covers (set_index, glyph_id);
306 307 308 309
    default:return false;
    }
  }

B
Behdad Esfahbod 已提交
310 311
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
312
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
313
    if (!u.format.sanitize (c)) return_trace (false);
B
Behdad Esfahbod 已提交
314
    switch (u.format) {
B
Behdad Esfahbod 已提交
315 316
    case 1: return_trace (u.format1.sanitize (c));
    default:return_trace (true);
B
Behdad Esfahbod 已提交
317 318 319
    }
  }

320
  protected:
321 322
  union {
  USHORT		format;		/* Format identifier */
B
Behdad Esfahbod 已提交
323
  MarkGlyphSetsFormat1	format1;
324
  } u;
B
Behdad Esfahbod 已提交
325
  public:
B
Behdad Esfahbod 已提交
326
  DEFINE_SIZE_UNION (2, format);
327 328 329
};


330
/*
B
Behdad Esfahbod 已提交
331
 * GDEF -- The Glyph Definition Table
332
 */
B
Behdad Esfahbod 已提交
333

B
Behdad Esfahbod 已提交
334 335
struct GDEF
{
336
  static const hb_tag_t tableTag	= HB_OT_TAG_GDEF;
337

B
Behdad Esfahbod 已提交
338
  enum GlyphClasses {
B
Behdad Esfahbod 已提交
339 340 341 342
    UnclassifiedGlyph	= 0,
    BaseGlyph		= 1,
    LigatureGlyph	= 2,
    MarkGlyph		= 3,
343
    ComponentGlyph	= 4
B
Behdad Esfahbod 已提交
344
  };
B
Behdad Esfahbod 已提交
345

B
Behdad Esfahbod 已提交
346
  inline bool has_glyph_classes (void) const { return glyphClassDef != 0; }
347
  inline unsigned int get_glyph_class (hb_codepoint_t glyph) const
B
Behdad Esfahbod 已提交
348
  { return (this+glyphClassDef).get_class (glyph); }
349 350
  inline void get_glyphs_in_class (unsigned int klass, hb_set_t *glyphs) const
  { (this+glyphClassDef).add_class (glyphs, klass); }
B
Behdad Esfahbod 已提交
351

B
Behdad Esfahbod 已提交
352
  inline bool has_mark_attachment_types (void) const { return markAttachClassDef != 0; }
353
  inline unsigned int get_mark_attachment_type (hb_codepoint_t glyph) const
B
Behdad Esfahbod 已提交
354 355
  { return (this+markAttachClassDef).get_class (glyph); }

B
Behdad Esfahbod 已提交
356
  inline bool has_attach_points (void) const { return attachList != 0; }
B
Behdad Esfahbod 已提交
357 358 359 360 361
  inline unsigned int get_attach_points (hb_codepoint_t glyph_id,
					 unsigned int start_offset,
					 unsigned int *point_count /* IN/OUT */,
					 unsigned int *point_array /* OUT */) const
  { return (this+attachList).get_attach_points (glyph_id, start_offset, point_count, point_array); }
B
Behdad Esfahbod 已提交
362

B
Behdad Esfahbod 已提交
363
  inline bool has_lig_carets (void) const { return ligCaretList != 0; }
364
  inline unsigned int get_lig_carets (hb_font_t *font,
365
				      hb_direction_t direction,
B
Behdad Esfahbod 已提交
366 367 368
				      hb_codepoint_t glyph_id,
				      unsigned int start_offset,
				      unsigned int *caret_count /* IN/OUT */,
369
				      hb_position_t *caret_array /* OUT */) const
370
  { return (this+ligCaretList).get_lig_carets (font, direction, glyph_id, start_offset, caret_count, caret_array); }
B
Behdad Esfahbod 已提交
371

372
  inline bool has_mark_sets (void) const { return version.to_int () >= 0x00010002u && markGlyphSetsDef != 0; }
373
  inline bool mark_set_covers (unsigned int set_index, hb_codepoint_t glyph_id) const
374
  { return version.to_int () >= 0x00010002u && (this+markGlyphSetsDef).covers (set_index, glyph_id); }
375

B
Behdad Esfahbod 已提交
376 377
  inline bool sanitize (hb_sanitize_context_t *c) const
  {
B
Behdad Esfahbod 已提交
378
    TRACE_SANITIZE (this);
B
Behdad Esfahbod 已提交
379 380 381 382 383 384
    return_trace (version.sanitize (c) &&
		  likely (version.major == 1) &&
		  glyphClassDef.sanitize (c, this) &&
		  attachList.sanitize (c, this) &&
		  ligCaretList.sanitize (c, this) &&
		  markAttachClassDef.sanitize (c, this) &&
385
		  (version.to_int () < 0x00010002u || markGlyphSetsDef.sanitize (c, this)));
B
Behdad Esfahbod 已提交
386 387
  }

B
Behdad Esfahbod 已提交
388 389 390 391 392 393 394 395

  /* glyph_props is a 16-bit integer where the lower 8-bit have bits representing
   * glyph class and other bits, and high 8-bit gthe mark attachment type (if any).
   * Not to be confused with lookup_props which is very similar. */
  inline unsigned int get_glyph_props (hb_codepoint_t glyph) const
  {
    unsigned int klass = get_glyph_class (glyph);

396 397 398 399
    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH == (unsigned int) LookupFlag::IgnoreBaseGlyphs);
    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE == (unsigned int) LookupFlag::IgnoreLigatures);
    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_MARK == (unsigned int) LookupFlag::IgnoreMarks);

B
Behdad Esfahbod 已提交
400
    switch (klass) {
401
    default:			return 0;
402 403
    case BaseGlyph:		return HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH;
    case LigatureGlyph:		return HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
B
Behdad Esfahbod 已提交
404 405
    case MarkGlyph:
	  klass = get_mark_attachment_type (glyph);
406
	  return HB_OT_LAYOUT_GLYPH_PROPS_MARK | (klass << 8);
B
Behdad Esfahbod 已提交
407 408 409 410
    }
  }


411
  protected:
B
Behdad Esfahbod 已提交
412
  FixedVersion<>version;		/* Version of the GDEF table--currently
413
					 * 0x00010002u */
B
Behdad Esfahbod 已提交
414 415
  OffsetTo<ClassDef>
		glyphClassDef;		/* Offset to class definition table
B
Behdad Esfahbod 已提交
416
					 * for glyph type--from beginning of
417
					 * GDEF header (may be Null) */
B
Behdad Esfahbod 已提交
418 419
  OffsetTo<AttachList>
		attachList;		/* Offset to list of glyphs with
B
Behdad Esfahbod 已提交
420
					 * attachment points--from beginning
421
					 * of GDEF header (may be Null) */
B
Behdad Esfahbod 已提交
422 423
  OffsetTo<LigCaretList>
		ligCaretList;		/* Offset to list of positioning points
B
Behdad Esfahbod 已提交
424
					 * for ligature carets--from beginning
425
					 * of GDEF header (may be Null) */
B
Behdad Esfahbod 已提交
426 427
  OffsetTo<ClassDef>
		markAttachClassDef;	/* Offset to class definition table for
B
Behdad Esfahbod 已提交
428
					 * mark attachment type--from beginning
429
					 * of GDEF header (may be Null) */
430
  OffsetTo<MarkGlyphSets>
431
		markGlyphSetsDef;	/* Offset to the table of mark set
432 433 434
					 * definitions--from beginning of GDEF
					 * header (may be NULL).  Introduced
					 * in version 00010002. */
B
Behdad Esfahbod 已提交
435
  public:
436
  DEFINE_SIZE_MIN (12);
B
Behdad Esfahbod 已提交
437 438
};

439

B
Behdad Esfahbod 已提交
440
} /* namespace OT */
441

B
Behdad Esfahbod 已提交
442

443
#endif /* HB_OT_LAYOUT_GDEF_TABLE_HH */