From e478ebe4d3f74dc271ffe88680fd29f6b1924c93 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Sep 2013 20:53:07 -0400 Subject: [PATCH] [introspection] Add sample.py --- src/sample.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 src/sample.py diff --git a/src/sample.py b/src/sample.py new file mode 100755 index 000000000..317a47e0f --- /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 () +