[pango/harfbuzz-ng] [GPOS] Implement MarkArray interface



commit 180781efd0691964cc5b823c6b9274f208fd083c
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu May 21 04:58:24 2009 -0400

    [GPOS] Implement MarkArray interface
---
 pango/opentype/hb-ot-layout-gpos-private.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pango/opentype/hb-ot-layout-gpos-private.h b/pango/opentype/hb-ot-layout-gpos-private.h
index 3d12b36..2208d79 100644
--- a/pango/opentype/hb-ot-layout-gpos-private.h
+++ b/pango/opentype/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<MarkRecord>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]