summaryrefslogtreecommitdiff
path: root/pango/pango-ot-buffer.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-10-11 00:07:58 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-10-11 00:07:58 +0000
commit04755c9304d976ad5bace39c409286a198d20ff2 (patch)
tree67217aa2da4d4a52d76d045ed77597068d458a1a /pango/pango-ot-buffer.c
parentfc08a649dbf57da6d79a1e8df1c3883f8f6b7111 (diff)
downloadpango-04755c9304d976ad5bace39c409286a198d20ff2.tar.gz
Bug 485559 – Boston Summit HarfBuzz optimizations
2007-10-10 Behdad Esfahbod <behdad@gnome.org> Bug 485559 – Boston Summit HarfBuzz optimizations * pango/opentype/*: HarfBuzz hacking to: - Rename last remaining FT_Err stuff to HB_Err. - Fix a couple invalid table paths to be permissive so fonts work better. Particularly GDEF table for Nafees Nastaliq is loaded and works great now. - Optimize harfbuzz buffer to not copy/swap for simple one-to-one and "copy" GSUB operations. * pango/pango-ot*: Update to FT_Err to HB_Err renaming. svn path=/trunk/; revision=2431
Diffstat (limited to 'pango/pango-ot-buffer.c')
-rw-r--r--pango/pango-ot-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index f84c4cd3..39a63060 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -47,7 +47,7 @@ pango_ot_buffer_new (PangoFcFont *font)
PangoOTBuffer *buffer = g_slice_new (PangoOTBuffer);
FT_Face face = pango_fc_font_lock_face (font);
- if (hb_buffer_new (face->memory, &buffer->buffer) != FT_Err_Ok)
+ if (hb_buffer_new (face->memory, &buffer->buffer) != HB_Err_Ok)
g_warning ("Allocation of HB_Buffer failed"); /* this doesn't happen */
buffer->font = g_object_ref (font);
@@ -339,7 +339,7 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer,
if (buffer->zero_width_marks &&
gdef &&
- HB_GDEF_Get_Glyph_Property (gdef, glyphs->glyphs[i].glyph, &property) == FT_Err_Ok &&
+ 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))
{
glyphs->glyphs[i].geometry.width = 0;