[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Sep 12 17:53:16 PDT 2013
src/sample.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit e478ebe4d3f74dc271ffe88680fd29f6b1924c93
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Sep 12 20:53:07 2013 -0400
[introspection] Add sample.py
diff --git a/src/sample.py b/src/sample.py
new file mode 100755
index 0000000..317a47e
--- /dev/null
+++ b/src/sample.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import sys
+from gi.repository import HarfBuzz as hb
+
+def nothing():
+ pass
+
+fontdata = file (sys.argv[1]).read ()
+blob = hb.blob_create (fontdata, hb.memory_mode_t.WRITABLE, None, nothing)
+print blob
+buffer = hb.buffer_create ()
+
More information about the HarfBuzz
mailing list