提交 e9f5c65b 编写于 作者: B Behdad Esfahbod

[bindings] Minor

上级 3704628d
...@@ -20,6 +20,8 @@ def tounicode(s, encoding='utf-8'): ...@@ -20,6 +20,8 @@ def tounicode(s, encoding='utf-8'):
fontdata = open (sys.argv[1], 'rb').read () fontdata = open (sys.argv[1], 'rb').read ()
text = tounicode(sys.argv[2]) 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)) blob = hb.glib_blob_create (GLib.Bytes.new (fontdata))
face = hb.face_create (blob, 0) face = hb.face_create (blob, 0)
del blob del blob
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册