src/java.desktop/share/native/libfontmanager/harfbuzz/hb-ot-layout-gdef-table.hh
changeset 48274 51772bf1fb0c
parent 47216 71c04702a3d5
child 50352 25db2c8f3cf8
equal deleted inserted replaced
48273:e2065f7505eb 48274:51772bf1fb0c
   293     return_trace (coverage.sanitize (c, this));
   293     return_trace (coverage.sanitize (c, this));
   294   }
   294   }
   295 
   295 
   296   protected:
   296   protected:
   297   USHORT        format;                 /* Format identifier--format = 1 */
   297   USHORT        format;                 /* Format identifier--format = 1 */
   298   ArrayOf<OffsetTo<Coverage, ULONG> >
   298   ArrayOf<LOffsetTo<Coverage> >
   299                 coverage;               /* Array of long offsets to mark set
   299                 coverage;               /* Array of long offsets to mark set
   300                                          * coverage tables */
   300                                          * coverage tables */
   301   public:
   301   public:
   302   DEFINE_SIZE_ARRAY (4, coverage);
   302   DEFINE_SIZE_ARRAY (4, coverage);
   303 };
   303 };
   402    * Not to be confused with lookup_props which is very similar. */
   402    * Not to be confused with lookup_props which is very similar. */
   403   inline unsigned int get_glyph_props (hb_codepoint_t glyph) const
   403   inline unsigned int get_glyph_props (hb_codepoint_t glyph) const
   404   {
   404   {
   405     unsigned int klass = get_glyph_class (glyph);
   405     unsigned int klass = get_glyph_class (glyph);
   406 
   406 
   407     ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH == (unsigned int) LookupFlag::IgnoreBaseGlyphs);
   407     static_assert (((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH == (unsigned int) LookupFlag::IgnoreBaseGlyphs), "");
   408     ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE == (unsigned int) LookupFlag::IgnoreLigatures);
   408     static_assert (((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE == (unsigned int) LookupFlag::IgnoreLigatures), "");
   409     ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_MARK == (unsigned int) LookupFlag::IgnoreMarks);
   409     static_assert (((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_MARK == (unsigned int) LookupFlag::IgnoreMarks), "");
   410 
   410 
   411     switch (klass) {
   411     switch (klass) {
   412     default:                    return 0;
   412     default:                    return 0;
   413     case BaseGlyph:             return HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH;
   413     case BaseGlyph:             return HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH;
   414     case LigatureGlyph:         return HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
   414     case LigatureGlyph:         return HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
   441   OffsetTo<MarkGlyphSets>
   441   OffsetTo<MarkGlyphSets>
   442                 markGlyphSetsDef;       /* Offset to the table of mark set
   442                 markGlyphSetsDef;       /* Offset to the table of mark set
   443                                          * definitions--from beginning of GDEF
   443                                          * definitions--from beginning of GDEF
   444                                          * header (may be NULL).  Introduced
   444                                          * header (may be NULL).  Introduced
   445                                          * in version 0x00010002. */
   445                                          * in version 0x00010002. */
   446   OffsetTo<VariationStore, ULONG>
   446   LOffsetTo<VariationStore>
   447                 varStore;               /* Offset to the table of Item Variation
   447                 varStore;               /* Offset to the table of Item Variation
   448                                          * Store--from beginning of GDEF
   448                                          * Store--from beginning of GDEF
   449                                          * header (may be NULL).  Introduced
   449                                          * header (may be NULL).  Introduced
   450                                          * in version 0x00010003. */
   450                                          * in version 0x00010003. */
   451   public:
   451   public: