mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[introspection] Add sample.py
This commit is contained in:
1 parent
dfdbe7f932
commit
e478ebe4d3
1 file changed
+13
Executable
+13
@@ -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 ()
|
||||
|
||||
Reference in new issue
Block a user