[OT] Match struct with HB's
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 2 Aug 2009 02:25:04 +0000 (22:25 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 2 Aug 2009 02:28:06 +0000 (22:28 -0400)
pango/opentype/hb-buffer.c
pango/opentype/hb-buffer.h
pango/opentype/hb-ot-layout.cc
pango/pango-ot.h

index a4b92d7..30ce2e8 100644 (file)
@@ -172,7 +172,7 @@ hb_buffer_add_glyph (hb_buffer_t    *buffer,
   glyph->cluster = cluster;
   glyph->component = 0;
   glyph->ligID = 0;
-  glyph->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+  glyph->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
 
   buffer->in_length++;
 }
@@ -285,7 +285,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
     info->cluster = cluster;
     info->component = component;
     info->ligID = ligID;
-    info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+    info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
   }
 
   buffer->in_pos  += num_in;
@@ -316,7 +316,7 @@ _hb_buffer_add_output_glyph (hb_buffer_t *buffer,
     info->component = component;
   if (ligID != 0xFFFF)
     info->ligID = ligID;
-  info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+  info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
 
   buffer->in_pos++;
   buffer->out_pos++;
index 26879bf..4a37cdb 100644 (file)
@@ -49,7 +49,7 @@ typedef struct _hb_glyph_info_t {
   unsigned int   cluster;
   unsigned short component;
   unsigned short ligID;
-  unsigned short gproperty;
+  unsigned int   internal;
 } hb_glyph_info_t;
 
 typedef struct _hb_glyph_position_t {
index d101340..9e73737 100644 (file)
@@ -182,9 +182,9 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t  *layout,
 {
   unsigned int property;
 
-  if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
-    ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
-  property = ginfo->gproperty;
+  if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
+    ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
+  property = ginfo->internal;
   if (property_out)
     *property_out = property;
 
@@ -221,9 +221,9 @@ _hb_ot_layout_skip_mark (hb_ot_layout_t  *layout,
 {
   unsigned int property;
 
-  if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
-    ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
-  property = ginfo->gproperty;
+  if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
+    ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
+  property = ginfo->internal;
   if (property_out)
     *property_out = property;
 
index 8b9d0a2..6a436fc 100644 (file)
@@ -64,12 +64,13 @@ typedef enum
 /* Note that this must match hb_glyph_info_t */
 struct _PangoOTGlyph
 {
-  guint    glyph;
+  guint32  glyph;
   guint    properties;
   guint    cluster;
   gushort  component;
   gushort  ligID;
-  gushort  property_cache;    /* Internal */
+
+  guint    internal;
 };
 
 struct _PangoOTFeatureMap