]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/KernTable.h
ICU-531.48.tar.gz
[apple/icu.git] / icuSources / layout / KernTable.h
index b8322cf1fe66e76de652f0b03cd696dedfa3d631..8e55c88637919f8a267421713c70a44894ccf362 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * @(#)KernTable.h     1.1 04/10/13
  *
 /*
  * @(#)KernTable.h     1.1 04/10/13
  *
- * (C) Copyright IBM Corp. 2004-2005 - All Rights Reserved
+ * (C) Copyright IBM Corp. 2004-2013 - All Rights Reserved
  *
  */
 
  *
  */
 
@@ -13,6 +13,7 @@
 #endif
 
 #include "LETypes.h"
 #endif
 
 #include "LETypes.h"
+#include "LETableReference.h"
 //#include "LEFontInstance.h"
 //#include "LEGlyphStorage.h"
 
 //#include "LEFontInstance.h"
 //#include "LEGlyphStorage.h"
 
@@ -31,19 +32,19 @@ class U_LAYOUT_API KernTable
  private:
   le_uint16 coverage;
   le_uint16 nPairs;
  private:
   le_uint16 coverage;
   le_uint16 nPairs;
-  const PairInfo* pairs;
-  const LEFontInstance* font;
+  LEReferenceToArrayOf<PairInfo> pairs;
+  const LETableReference &fTable;
   le_uint16 searchRange;
   le_uint16 entrySelector;
   le_uint16 rangeShift;
 
  public:
   le_uint16 searchRange;
   le_uint16 entrySelector;
   le_uint16 rangeShift;
 
  public:
-  KernTable(const LEFontInstance* font, const void* tableData);
+  KernTable(const LETableReference &table, LEErrorCode &success);
 
   /*
    * Process the glyph positions.
    */
 
   /*
    * Process the glyph positions.
    */
-  void process(LEGlyphStorage& storage);
+  void process(LEGlyphStorage& storage, LEErrorCode &success);
 };
 
 U_NAMESPACE_END
 };
 
 U_NAMESPACE_END