Minor
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 23 Apr 2012 17:20:52 +0000 (13:20 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 23 Apr 2012 17:22:50 +0000 (13:22 -0400)
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout.cc
src/hb-ot-layout.h
src/hb-private.hh

index 810a495..46e322b 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "hb-buffer-private.hh"
 #include "hb-ot-layout-gdef-table.hh"
-#include "hb-ot-layout-closure.h"
 
 
 
index b018661..4441a7e 100644 (file)
@@ -471,9 +471,9 @@ hb_ot_layout_substitute_finish (hb_buffer_t  *buffer HB_UNUSED)
 }
 
 hb_bool_t
-hb_ot_layout_closure_lookup (hb_face_t      *face,
-                            hb_glyph_map_t *glyphs,
-                            unsigned int    lookup_index)
+hb_ot_layout_substitute_closure_lookup (hb_face_t      *face,
+                                       hb_glyph_map_t *glyphs,
+                                       unsigned int    lookup_index)
 {
   hb_closure_context_t c (face, glyphs);
   return _get_gsub (face).closure_lookup (&c, lookup_index);
index 430e54c..16addc6 100644 (file)
@@ -182,6 +182,14 @@ hb_ot_layout_substitute_lookup (hb_face_t    *face,
 void
 hb_ot_layout_substitute_finish (hb_buffer_t  *buffer);
 
+
+typedef uint32_t hb_glyph_map_t[65536 / 32]; /* 8kb */
+
+hb_bool_t
+hb_ot_layout_substitute_closure_lookup (hb_face_t      *face,
+                                       hb_glyph_map_t *glyphs,
+                                       unsigned int    lookup_index);
+
 /*
  * GPOS
  */
index 64cb3c8..4f211a1 100644 (file)
 #endif
 
 #include "hb.h"
-#include "hb-ot.h"
 #define HB_H_IN
+#ifdef HAVE_OT
+#include "hb-ot.h"
 #define HB_OT_H_IN
+#endif
 
 #include <stdlib.h>
 #include <stddef.h>