From 28c4245e9f76c6c53a4589e7745a60ed0e97414a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 26 Feb 2018 01:10:42 -0800 Subject: [PATCH] [aat/ankr] Define Anchor struct --- src/hb-aat-layout-ankr-table.hh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/hb-aat-layout-ankr-table.hh b/src/hb-aat-layout-ankr-table.hh index f9d5cd3bb..d0453bd88 100644 --- a/src/hb-aat-layout-ankr-table.hh +++ b/src/hb-aat-layout-ankr-table.hh @@ -37,6 +37,20 @@ namespace AAT { * ankr -- Anchor point */ +struct Anchor +{ + inline bool sanitize (hb_sanitize_context_t *c) const + { + TRACE_SANITIZE (this); + return_trace (c->check_struct (this)); + } + + FWORD xCoordinate; + FWORD yCoordinate; + public: + DEFINE_SIZE_STATIC (4); +}; + struct ankr { static const hb_tag_t tableTag = HB_AAT_TAG_ankr; @@ -53,7 +67,7 @@ struct ankr HBUINT16 version; /* Version number (set to zero) */ HBUINT16 flags; /* Flags (currently unused; set to zero) */ LOffsetTo > lookupTable; /* Offset to the table's lookup table */ - LOffsetTo > + LOffsetTo > anchors; /* Offset to the glyph data table */ public: