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:
dfdbe7f
)
[introspection] Add sample.py
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 13 Sep 2013 00:53:07 +0000
(20:53 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 13 Sep 2013 00:53:07 +0000
(20:53 -0400)
src/sample.py
[new file with mode: 0755]
patch
|
blob
diff --git a/src/sample.py
b/src/sample.py
new file mode 100755
(executable)
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 ()
+