Add stub HBUINT15

This commit is contained in:
Behdad Esfahbod 2021-09-19 23:06:09 -04:00
parent c852b86841
commit 14a2df7bc2
2 changed files with 10 additions and 1 deletions

View File

@ -122,6 +122,15 @@ typedef IntType<int32_t> HBINT32; /* 32-bit signed integer. */
* Works for unsigned, but not signed, since we rely on compiler for sign-extension. */ * Works for unsigned, but not signed, since we rely on compiler for sign-extension. */
typedef IntType<uint32_t, 3> HBUINT24; /* 24-bit unsigned integer. */ typedef IntType<uint32_t, 3> HBUINT24; /* 24-bit unsigned integer. */
/* 15-bit unsigned number; top bit used for extension. */
struct HBUINT15 : HBUINT16
{
/* TODO Flesh out; actually mask top bit. */
HBUINT15& operator = (uint16_t i ) { HBUINT16::operator= (i); return *this; }
public:
DEFINE_SIZE_STATIC (2);
};
/* 16-bit signed integer (HBINT16) that describes a quantity in FUnits. */ /* 16-bit signed integer (HBINT16) that describes a quantity in FUnits. */
typedef HBINT16 FWORD; typedef HBINT16 FWORD;

View File

@ -2543,7 +2543,7 @@ struct VarRegionList
public: public:
HBUINT16 axisCount; HBUINT16 axisCount;
HBUINT16 regionCount; HBUINT15 regionCount;
protected: protected:
UnsizedArrayOf<VarRegionAxis> UnsizedArrayOf<VarRegionAxis>
axesZ; axesZ;