summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/harfbuzz-src/README.python.md
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-06-06 07:23:34 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-06-06 07:23:34 +0000
commitb00780a7898db7f92c00d485fa1524805cd3e070 (patch)
tree88f07845cafb38cde35e3586d821a6c0505381df /Build/source/libs/harfbuzz/harfbuzz-src/README.python.md
parent3809fcc9aa6e0a70857cbe4985576c55317539dc (diff)
harfbuzz 1.8.0
git-svn-id: svn://tug.org/texlive/trunk@47939 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/README.python.md')
-rw-r--r--Build/source/libs/harfbuzz/harfbuzz-src/README.python.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/README.python.md b/Build/source/libs/harfbuzz/harfbuzz-src/README.python.md
new file mode 100644
index 00000000000..4c0ba9b2776
--- /dev/null
+++ b/Build/source/libs/harfbuzz/harfbuzz-src/README.python.md
@@ -0,0 +1,36 @@
+To enable HarfBuzz bindings for Python among other languages, make sure
+you have latest version of gobject-introspection available. On Ubuntu,
+you can install that this way:
+
+```bash
+sudo apt-get install libgirepository1.0-dev
+```
+
+And then run autogen.sh (if building from git), and then:
+
+```bash
+./configure --with-gobject --enable-introspection
+```
+
+Make sure that gobject-introspection is enabled then in the final report.
+
+Compile and install.
+
+Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
+for the linker to find the library.
+
+Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
+$prefix/lib/girepository-* directory.
+
+Make sure you have pygobject installed. Then check that the following
+import works in your Python interpretter:
+
+```python
+from gi.repository import HarfBuzz
+```
+
+If it does, you are ready to call HarfBuzz from Python! Congratulations.
+See src/sample.py.
+
+The Python API will change. Let us know on the mailing list if you are
+using it, and send lots of feedback.