Hash : e478ebe4 Author : Date : 2013-09-12T20:53:07
[introspection] Add sample.py
Download
1 2 3 4 5 6 7 8 9 10 11 12 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 ()