• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1To enable HarfBuzz bindings for Python among other languages, make sure
2you have latest version of gobject-introspection available.  On Ubuntu,
3you can install that this way:
4
5```bash
6sudo apt-get install libgirepository1.0-dev
7```
8
9And then run autogen.sh (if building from git), and then:
10
11```bash
12./configure --with-gobject --enable-introspection
13```
14
15Make sure that gobject-introspection is enabled then in the final report.
16
17Compile and install.
18
19Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
20for the linker to find the library.
21
22Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
23$prefix/lib/girepository-* directory.
24
25Make sure you have pygobject installed.  Then check that the following
26import works in your Python interpreter:
27
28```python
29from gi.repository import HarfBuzz
30```
31
32If it does, you are ready to call HarfBuzz from Python!  Congratulations.
33See src/sample.py.
34
35The Python API will change.  Let us know on the mailing list if you are
36using it, and send lots of feedback.
37