mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
14 lines
248 B
Python
Executable File
14 lines
248 B
Python
Executable File
#!/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 ()
|
|
|