projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3704628
)
[bindings] Minor
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 19 Jan 2015 22:42:11 +0000
(14:42 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 20 Jan 2015 00:15:32 +0000
(16:15 -0800)
src/sample.py
patch
|
blob
|
history
diff --git
a/src/sample.py
b/src/sample.py
index
1ed593b
..
f8d2216
100755
(executable)
--- 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