[pango/harfbuzz-ng-external] [hb] Adapt to harfbuzz API changes
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/harfbuzz-ng-external] [hb] Adapt to harfbuzz API changes
- Date: Mon, 19 Sep 2011 21:48:58 +0000 (UTC)
commit 2865c344987194494adc2c5e9f1c7556d52eddda
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Sep 19 17:48:39 2011 -0400
[hb] Adapt to harfbuzz API changes
modules/basic/basic-fc.c | 4 ++--
pango/pango-ot-buffer.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index 4283247..e263b4c 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -67,7 +67,7 @@ create_buffer (void)
{
hb_buffer_t *buffer;
- buffer = hb_buffer_create (32);
+ buffer = hb_buffer_create ();
hb_buffer_set_unicode_funcs (buffer, hb_glib_get_unicode_funcs ());
return buffer;
@@ -279,7 +279,7 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
/* setup buffer */
hb_buffer_set_direction (hb_buffer, analysis->level % 2 != 0 ? HB_DIRECTION_RTL : HB_DIRECTION_LTR);
hb_buffer_set_script (hb_buffer, hb_glib_script_to_script (analysis->script));
- hb_buffer_set_language (hb_buffer, hb_language_from_string (pango_language_to_string (analysis->language)));
+ hb_buffer_set_language (hb_buffer, hb_language_from_string (pango_language_to_string (analysis->language), -1));
hb_buffer_add_utf8 (hb_buffer, text, length, 0, length);
hb_shape (hb_font, hb_buffer, NULL, 0);
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index 100e646..f306aa1 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -34,7 +34,7 @@ create_buffer (void)
{
hb_buffer_t *buffer;
- buffer = hb_buffer_create (32);
+ buffer = hb_buffer_create ();
hb_buffer_set_unicode_funcs (buffer, hb_glib_get_unicode_funcs ());
return buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]