| Index: third_party/harfbuzz-ng/src/hb-ot-layout-gdef-table.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-ot-layout-gdef-table.hh b/third_party/harfbuzz-ng/src/hb-ot-layout-gdef-table.hh
|
| index f29fc14d8f215a802d517ec66b18580048a35636..92ae1cf581b82dcfb6fa9a45d21a03e16e767cb1 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-ot-layout-gdef-table.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-ot-layout-gdef-table.hh
|
| @@ -34,6 +34,8 @@
|
| #include "hb-font-private.hh"
|
|
|
|
|
| +namespace OT {
|
| +
|
|
|
| /*
|
| * Attachment List Table
|
| @@ -74,7 +76,7 @@ struct AttachList
|
| return TRACE_RETURN (coverage.sanitize (c, this) && attachPoint.sanitize (c, this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| OffsetTo<Coverage>
|
| coverage; /* Offset to Coverage table -- from
|
| * beginning of AttachList table */
|
| @@ -104,7 +106,7 @@ struct CaretValueFormat1
|
| return TRACE_RETURN (c->check_struct (this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| USHORT caretValueFormat; /* Format identifier--format = 1 */
|
| SHORT coordinate; /* X or Y value, in design units */
|
| public:
|
| @@ -119,7 +121,7 @@ struct CaretValueFormat2
|
| inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const
|
| {
|
| hb_position_t x, y;
|
| - if (hb_font_get_glyph_contour_point_for_origin (font, glyph_id, caretValuePoint, direction, &x, &y))
|
| + if (font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y))
|
| return HB_DIRECTION_IS_HORIZONTAL (direction) ? x : y;
|
| else
|
| return 0;
|
| @@ -130,7 +132,7 @@ struct CaretValueFormat2
|
| return TRACE_RETURN (c->check_struct (this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| USHORT caretValueFormat; /* Format identifier--format = 2 */
|
| USHORT caretValuePoint; /* Contour point index on glyph */
|
| public:
|
| @@ -153,7 +155,7 @@ struct CaretValueFormat3
|
| return TRACE_RETURN (c->check_struct (this) && deviceTable.sanitize (c, this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| USHORT caretValueFormat; /* Format identifier--format = 3 */
|
| SHORT coordinate; /* X or Y value, in design units */
|
| OffsetTo<Device>
|
| @@ -187,7 +189,7 @@ struct CaretValue
|
| }
|
| }
|
|
|
| - private:
|
| + protected:
|
| union {
|
| USHORT format; /* Format identifier */
|
| CaretValueFormat1 format1;
|
| @@ -222,7 +224,7 @@ struct LigGlyph
|
| return TRACE_RETURN (carets.sanitize (c, this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| OffsetArrayOf<CaretValue>
|
| carets; /* Offset array of CaretValue tables
|
| * --from beginning of LigGlyph table
|
| @@ -256,7 +258,7 @@ struct LigCaretList
|
| return TRACE_RETURN (coverage.sanitize (c, this) && ligGlyph.sanitize (c, this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| OffsetTo<Coverage>
|
| coverage; /* Offset to Coverage table--from
|
| * beginning of LigCaretList table */
|
| @@ -278,7 +280,7 @@ struct MarkGlyphSetsFormat1
|
| return TRACE_RETURN (coverage.sanitize (c, this));
|
| }
|
|
|
| - private:
|
| + protected:
|
| USHORT format; /* Format identifier--format = 1 */
|
| LongOffsetArrayOf<Coverage>
|
| coverage; /* Array of long offsets to mark set
|
| @@ -306,7 +308,7 @@ struct MarkGlyphSets
|
| }
|
| }
|
|
|
| - private:
|
| + protected:
|
| union {
|
| USHORT format; /* Format identifier */
|
| MarkGlyphSetsFormat1 format1;
|
| @@ -392,7 +394,7 @@ struct GDEF
|
| }
|
|
|
|
|
| - private:
|
| + protected:
|
| FixedVersion version; /* Version of the GDEF table--currently
|
| * 0x00010002 */
|
| OffsetTo<ClassDef>
|
| @@ -421,5 +423,7 @@ struct GDEF
|
| };
|
|
|
|
|
| +} // namespace OT
|
| +
|
|
|
| #endif /* HB_OT_LAYOUT_GDEF_TABLE_HH */
|
|
|