Fix a few struct size declarations

Was wrong.  As excercised by defining VAR to other than 1 in hb.hh.
pull/1959/head
Behdad Esfahbod 5 years ago
parent 7d4da8b862
commit c379faed2b
  1. 2
      src/hb-aat-layout-feat-table.hh
  2. 2
      src/hb-ot-cff-common.hh
  3. 2
      src/hb-ot-color-sbix-table.hh
  4. 2
      src/hb-ot-layout-common.hh

@ -206,7 +206,7 @@ struct feat
SortedUnsizedArrayOf<FeatureName>
namesZ; /* The feature name array. */
public:
DEFINE_SIZE_STATIC (24);
DEFINE_SIZE_ARRAY (12, namesZ);
};
} /* namespace AAT */

@ -516,7 +516,7 @@ struct FDSelect0 {
HBUINT8 fds[VAR];
DEFINE_SIZE_MIN (1);
DEFINE_SIZE_MIN (0);
};
template <typename GID_TYPE, typename FD_TYPE>

@ -125,7 +125,7 @@ struct SBIXStrike
imageOffsetsZ; /* Offset from the beginning of the strike data header
* to bitmap data for an individual glyph ID. */
public:
DEFINE_SIZE_STATIC (8);
DEFINE_SIZE_ARRAY (4, imageOffsetsZ);
};
struct sbix

@ -540,7 +540,7 @@ struct FeatureParams
FeatureParamsCharacterVariants characterVariants;
} u;
public:
DEFINE_SIZE_STATIC (17);
DEFINE_SIZE_MIN (0);
};
struct Feature

Loading…
Cancel
Save