[HarfBuzz] harfbuzz: Branch 'master' - 3 commits

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Jun 29 04:15:57 UTC 2016


 src/hb-buffer.cc         |    2 +-
 src/hb-gobject-structs.h |   12 ++++++++++++
 src/hb-shape.cc          |    2 --
 src/hb-unicode.h         |   15 ---------------
 src/sample.py            |    3 +--
 5 files changed, 14 insertions(+), 20 deletions(-)

New commits:
commit 70e72e5f61d73c33d3c8f3bf07f5a9afd0db046a
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Jun 28 21:00:37 2016 -0700

    [gobject] Fix a few warnings
    
    Part of https://github.com/behdad/harfbuzz/issues/277

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 406db9c..4552d15 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -52,7 +52,7 @@
  *
  * Checks the equality of two #hb_segment_properties_t's.
  *
- * Return value: (transfer full):
+ * Return value:
  * %true if all properties of @a equal those of @b, false otherwise.
  *
  * Since: 0.9.7
diff --git a/src/hb-gobject-structs.h b/src/hb-gobject-structs.h
index 0ea3b12..1c30321 100644
--- a/src/hb-gobject-structs.h
+++ b/src/hb-gobject-structs.h
@@ -41,30 +41,40 @@ HB_BEGIN_DECLS
 /* Object types */
 
 /**
+ * hb_gobject_blob_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_blob_get_type (void);
 #define HB_GOBJECT_TYPE_BLOB (hb_gobject_blob_get_type ())
 
 /**
+ * hb_gobject_buffer_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_buffer_get_type (void);
 #define HB_GOBJECT_TYPE_BUFFER (hb_gobject_buffer_get_type ())
 
 /**
+ * hb_gobject_face_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_face_get_type (void);
 #define HB_GOBJECT_TYPE_FACE (hb_gobject_face_get_type ())
 
 /**
+ * hb_gobject_font_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_font_get_type (void);
 #define HB_GOBJECT_TYPE_FONT (hb_gobject_font_get_type ())
 
 /**
+ * hb_gobject_font_funcs_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_font_funcs_get_type (void);
@@ -77,6 +87,8 @@ HB_EXTERN GType hb_gobject_shape_plan_get_type (void);
 #define HB_GOBJECT_TYPE_SHAPE_PLAN (hb_gobject_shape_plan_get_type ())
 
 /**
+ * hb_gobject_unicode_funcs_get_type:
+ *
  * Since: 0.9.2
  **/
 HB_EXTERN GType hb_gobject_unicode_funcs_get_type (void);
diff --git a/src/hb-shape.cc b/src/hb-shape.cc
index 352d42c..41a4fc5 100644
--- a/src/hb-shape.cc
+++ b/src/hb-shape.cc
@@ -394,8 +394,6 @@ hb_shape_full (hb_font_t          *font,
  * positioned glyphs. If @features is not %NULL, it will be used to control the
  * features applied during shaping.
  *
- * Return value: %FALSE if all shapers failed, %TRUE otherwise
- *
  * Since: 0.9.2
  **/
 void
diff --git a/src/hb-unicode.h b/src/hb-unicode.h
index 6a15cb0..2657f48 100644
--- a/src/hb-unicode.h
+++ b/src/hb-unicode.h
@@ -449,33 +449,18 @@ HB_EXTERN hb_script_t
 hb_unicode_script (hb_unicode_funcs_t *ufuncs,
 		   hb_codepoint_t unicode);
 
-/**
- * hb_unicode_compose:
- *
- * Since: 0.9.2
- **/
 HB_EXTERN hb_bool_t
 hb_unicode_compose (hb_unicode_funcs_t *ufuncs,
 		    hb_codepoint_t      a,
 		    hb_codepoint_t      b,
 		    hb_codepoint_t     *ab);
 
-/**
- * hb_unicode_decompose:
- *
- * Since: 0.9.2
- **/
 HB_EXTERN hb_bool_t
 hb_unicode_decompose (hb_unicode_funcs_t *ufuncs,
 		      hb_codepoint_t      ab,
 		      hb_codepoint_t     *a,
 		      hb_codepoint_t     *b);
 
-/**
- * hb_unicode_decompose_compatibility:
- *
- * Since: 0.9.2
- **/
 HB_EXTERN unsigned int
 hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs,
 				    hb_codepoint_t      u,
commit d8273aac19771033c5064a2f079c29d09a86e7c0
Merge: abae93f ae9054c
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Jun 28 21:15:28 2016 -0700

    Merge pull request #280 from behdad/revert-271-patch-2
    
    Revert "use utf32"

commit ae9054c740631e36b7582b44c5afb42ff4509461
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Jun 28 21:14:38 2016 -0700

    Revert "use utf32"

diff --git a/src/sample.py b/src/sample.py
index cfbc122..19a4fdc 100755
--- a/src/sample.py
+++ b/src/sample.py
@@ -20,7 +20,6 @@ def tounicode(s, encoding='utf-8'):
 
 fontdata = open (sys.argv[1], 'rb').read ()
 text = tounicode(sys.argv[2])
-codepoints = list(map(ord, text))
 # Need to create GLib.Bytes explicitly until this bug is fixed:
 # https://bugzilla.gnome.org/show_bug.cgi?id=729541
 blob = hb.glib_blob_create (GLib.Bytes.new (fontdata))
@@ -40,7 +39,7 @@ class Debugger(object):
 		return True
 debugger = Debugger()
 hb.buffer_set_message_func (buf, debugger.message, 1, 0)
-hb.buffer_add_utf32 (buf, codepoints, 0, len(codepoints))
+hb.buffer_add_utf8 (buf, text.encode('utf-8'), 0, -1)
 hb.buffer_guess_segment_properties (buf)
 
 hb.shape (font, buf, [])


More information about the HarfBuzz mailing list