src/sample.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit e478ebe4d3f74dc271ffe88680fd29f6b1924c93
Author: Behdad Esfahbod <[email protected]>
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 ()
+
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz