From: Garret Rieger Date: Tue, 27 Feb 2018 22:37:18 +0000 (-0800) Subject: [subset] minor fixes in hb-ot-maxp-table.hh X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=921b65cbc29f0c2c9c13e9fb272dafe4c8a14591;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [subset] minor fixes in hb-ot-maxp-table.hh --- diff --git a/src/hb-ot-maxp-table.hh b/src/hb-ot-maxp-table.hh index 77aa4e5..881deda 100644 --- a/src/hb-ot-maxp-table.hh +++ b/src/hb-ot-maxp-table.hh @@ -52,19 +52,19 @@ struct maxpV1Tail HBUINT16 maxCompositePoints; /* Maximum points in a composite glyph. */ HBUINT16 maxCompositeContours; /* Maximum contours in a composite glyph. */ HBUINT16 maxZones; /* 1 if instructions do not use the twilight zone (Z0), - or 2 if instructions do use Z0; should be set to 2 in - most cases. */ + * or 2 if instructions do use Z0; should be set to 2 in + * most cases. */ HBUINT16 maxTwilightPoints; /* Maximum points used in Z0. */ HBUINT16 maxStorage; /* Number of Storage Area locations. */ HBUINT16 maxFunctionDefs; /* Number of FDEFs, equal to the highest function number + 1. */ HBUINT16 maxInstructionDefs; /* Number of IDEFs. */ HBUINT16 maxStackElements; /* Maximum stack depth. (This includes Font and CVT - Programs, as well as the instructions for each glyph.) */ + * Programs, as well as the instructions for each glyph.) */ HBUINT16 maxSizeOfInstructions; /* Maximum byte count for glyph instructions. */ HBUINT16 maxComponentElements; /* Maximum number of components referenced at - "top level" for any composite glyph. */ + * "top level" for any composite glyph. */ HBUINT16 maxComponentDepth; /* Maximum levels of recursion; 1 for simple components. */ - + public: DEFINE_SIZE_STATIC (26); }; @@ -119,9 +119,9 @@ struct maxp static inline void drop_hint_fields (hb_subset_plan_t *plan, OT::maxp *maxp_prime) { - maxpV1Tail &v1 = StructAfter (*maxp_prime); if (maxp_prime->version.major == 1) { + maxpV1Tail &v1 = StructAfter (*maxp_prime); v1.maxZones.set (1); v1.maxTwilightPoints.set (0); v1.maxStorage.set (0); @@ -136,8 +136,7 @@ struct maxp FixedVersion<>version; /* Version of the maxp table (0.5 or 1.0), * 0x00005000u or 0x00010000u. */ HBUINT16 numGlyphs; /* The number of glyphs in the font. */ -/*maxpV1Tail v1Tail; */ - +/*maxpV1Tail v1Tail[VAR]; */ public: DEFINE_SIZE_STATIC (6); };