[introspection] Add sample.py

This commit is contained in:
Behdad Esfahbod 2013-09-12 20:53:07 -04:00
parent dfdbe7f932
commit e478ebe4d3
1 changed files with 13 additions and 0 deletions

13
src/sample.py Executable file
View File

@ -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 ()