summaryrefslogtreecommitdiff
path: root/pango/pango-ot-buffer.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-04-15 20:14:24 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-05-04 19:39:25 -0400
commit23fe8a3b2aa15ea135704d8c25321a016a6972ae (patch)
tree71d0181e00ed6e20313bb9c69ba1d745b870520e /pango/pango-ot-buffer.c
parent8cf1dc67718227b27e79ba2694a93f4005d51db1 (diff)
downloadpango-23fe8a3b2aa15ea135704d8c25321a016a6972ae.tar.gz
Merge harfbuzz-ng
Diffstat (limited to 'pango/pango-ot-buffer.c')
-rw-r--r--pango/pango-ot-buffer.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index 7795b273..5feb5a0e 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -325,8 +325,7 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer,
PangoGlyphString *glyphs)
{
FT_Face face;
- PangoOTInfo *info;
- HB_GDEF gdef = NULL;
+ hb_ot_layout_t *layout;
unsigned int i;
int last_cluster;
@@ -352,8 +351,7 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer,
last_cluster = glyphs->log_clusters[i];
}
- info = pango_ot_info_get (face);
- gdef = pango_ot_info_get_gdef (info);
+ layout = _pango_ot_info_get_layout (pango_ot_info_get (face));
/* Apply default positioning */
for (i = 0; i < (unsigned int)glyphs->num_glyphs; i++)
@@ -362,12 +360,8 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer,
{
PangoRectangle logical_rect;
- HB_UShort property;
-
if (buffer->zero_width_marks &&
- gdef &&
- HB_GDEF_Get_Glyph_Property (gdef, glyphs->glyphs[i].glyph, &property) == HB_Err_Ok &&
- (property == HB_GDEF_MARK || (property & HB_LOOKUP_FLAG_IGNORE_SPECIAL_MARKS) != 0))
+ hb_ot_layout_get_glyph_class (layout, glyphs->glyphs[i].glyph) == HB_OT_LAYOUT_GLYPH_CLASS_MARK)
{
glyphs->glyphs[i].geometry.width = 0;
}