summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh')
-rw-r--r--Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh26
1 files changed, 14 insertions, 12 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh
index d0453bd8807..3b7912b9df6 100644
--- a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh
+++ b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-aat-layout-ankr-table.hh
@@ -27,16 +27,16 @@
#include "hb-aat-layout-common-private.hh"
+/*
+ * ankr -- Anchor Point
+ * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ankr.html
+ */
#define HB_AAT_TAG_ankr HB_TAG('a','n','k','r')
namespace AAT {
-/*
- * ankr -- Anchor point
- */
-
struct Anchor
{
inline bool sanitize (hb_sanitize_context_t *c) const
@@ -58,17 +58,19 @@ struct ankr
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
- return_trace (c->check_struct (this) && version == 0 &&
- lookupTable.sanitize (c, this) &&
- anchors.sanitize (c, this));
+ return_trace (likely (c->check_struct (this) &&
+ version == 0 &&
+ lookupTable.sanitize (c, this) &&
+ anchors.sanitize (c, this)));
}
protected:
- HBUINT16 version; /* Version number (set to zero) */
- HBUINT16 flags; /* Flags (currently unused; set to zero) */
- LOffsetTo<Lookup<HBUINT16> > lookupTable; /* Offset to the table's lookup table */
- LOffsetTo<ArrayOf<Anchor, HBUINT32> >
- anchors; /* Offset to the glyph data table */
+ HBUINT16 version; /* Version number (set to zero) */
+ HBUINT16 flags; /* Flags (currently unused; set to zero) */
+ LOffsetTo<Lookup<HBUINT16> >
+ lookupTable; /* Offset to the table's lookup table */
+ LOffsetTo<LArrayOf<Anchor> >
+ anchors; /* Offset to the glyph data table */
public:
DEFINE_SIZE_STATIC (12);