Change hb_shape() API back to what it was, add hb_shape_full()
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Aug 2011 21:22:19 +0000 (17:22 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Aug 2011 23:59:02 +0000 (19:59 -0400)
I disliked changing hb_shape() API, and disliked the fact that it was
returning a bool now.  So, reverted.  Added new API for the extra
functionality.

src/hb-view.cc

index 67070ef..dc3fc47 100644 (file)
@@ -370,7 +370,7 @@ _hb_cr_text_glyphs (cairo_t *cr,
     len = strlen (utf8);
   hb_buffer_add_utf8 (hb_buffer, utf8, len, 0, len);
 
-  hb_shape (hb_font, hb_buffer, features, num_features, NULL, NULL);
+  hb_shape (hb_font, hb_buffer, features, num_features);
 
   num_glyphs = hb_buffer_get_length (hb_buffer);
   hb_glyph = hb_buffer_get_glyph_infos (hb_buffer, NULL);