From e9f5c65be027eb7759ab819e267e24dff3b017b6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 19 Jan 2015 14:42:11 -0800 Subject: [PATCH] [bindings] Minor --- src/sample.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sample.py b/src/sample.py index 1ed593b58..f8d221699 100755 --- a/src/sample.py +++ b/src/sample.py @@ -20,6 +20,8 @@ def tounicode(s, encoding='utf-8'): fontdata = open (sys.argv[1], 'rb').read () text = tounicode(sys.argv[2]) +# 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)) face = hb.face_create (blob, 0) del blob