From 377bfc5860ae018f54e4a2dd737b4b000383ab54 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 May 2009 04:58:24 -0400 Subject: [PATCH] [GPOS] Implement MarkArray interface --- src/hb-ot-layout-gpos-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-layout-gpos-private.h b/src/hb-ot-layout-gpos-private.h index 3d12b36..2208d79 100644 --- a/src/hb-ot-layout-gpos-private.h +++ b/src/hb-ot-layout-gpos-private.h @@ -228,7 +228,7 @@ ASSERT_SIZE (Anchor, 2); struct MarkRecord { - /* TODO */ + friend struct MarkArray; private: USHORT klass; /* Class defined for this mark */ @@ -240,7 +240,8 @@ ASSERT_SIZE (MarkRecord, 4); struct MarkArray { - /* TODO */ + inline unsigned int get_class (unsigned int index) { return markRecord[index].klass; } + inline const Anchor& get_anchor (unsigned int index) { return this+markRecord[index].markAnchor; } private: ArrayOf -- 2.7.4