Fix a few struct size declarations
Was wrong. As excercised by defining VAR to other than 1 in hb.hh.
This commit is contained in:
parent
7d4da8b862
commit
c379faed2b
|
@ -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…
Reference in New Issue